Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

associating .m files with matlab

1,045 views
Skip to first unread message

nishant

unread,
Oct 9, 2010, 8:15:07 AM10/9/10
to
i have uninstalled matlab 2009a n switched to matlab 2010b but now the .m files do not open..they give the option as windows do not know the file....i've also made changes to it's path n made it open with matlab C:\Program Files\MATLAB\R2010b\bin\win64 but it again launches an instance of matlab but not the file in the editor....
I simply end up getting two or three instances of matlab but not the editor...
i have also tried commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.m') ;cd(cwd); disp('Changed Windows file association. M-files are now associated with MATLAB.');
but it throws error saying cannot modify the registry....
i am using win7 64bit...this problem is really irksome....please help

Image Analyst

unread,
Oct 9, 2010, 10:10:04 AM10/9/10
to
nishant:
I don't know how to do it in Windows 7, but in XP, there was a utility of Windows Explorer (the file management utility) under the pulldown menu Tools/folder options/File Types. There you could specify what app opens what file extension.

Mark Shore

unread,
Oct 9, 2010, 11:24:04 AM10/9/10
to
This works more or less the same way in Windows 7 64-bit as it did in other versions. In Windows Explorer (i.e. the file browser) double-click on an m file. If the .m extension is not associated with another program (the way MS Access hijacks the .mat extension, for example) then a dialog box will open asking you to either use a web service to find the right program or for you to select it manually. Choose the latter, make sure the always use this program box is checked, and select the version of MATLAB you want to use.

CHEW YEONG

unread,
Oct 9, 2010, 1:10:05 PM10/9/10
to
"nishant " <mishra....@live.com> wrote in message <i8pmcb$doc$1...@fred.mathworks.com>...

I'm having the same problem too. Instead of popping the .m editor, it keeps opening a new Matlab without the .m editor. I say it's a bug in R2010b.

Mark Shore

unread,
Oct 9, 2010, 1:53:04 PM10/9/10
to
>
> I'm having the same problem too. Instead of popping the .m editor, it keeps opening a new Matlab without the .m editor. I say it's a bug in R2010b.

Mine works fine. R2010b in Win7 x64.

Steven_Lord

unread,
Oct 10, 2010, 1:33:11 AM10/10/10
to

"CHEW YEONG " <chewy...@gmail.com> wrote in message
news:i8q7ld$euh$1...@fred.mathworks.com...

Try following the instructions on this page; if it still doesn't work,
contact Technical Support and work with them to determine the cause of this
behavior on your system.

http://www.mathworks.com/help/techdoc/matlab_env/f8-8880.html#f8-28791

--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Ethan Leong

unread,
Oct 10, 2010, 10:18:03 PM10/10/10
to
I found the solution for this.

Download ccleaner and run the registry cleaner. Since R2010a is uninstalled, the registry is still pointing towards R2010a. After running the registry cleaner, the problem is fixed.

Thanks

Jonathan Wang

unread,
Jan 4, 2011, 11:39:06 PM1/4/11
to
"Ethan Leong" <chewy...@gmail.com> wrote in message <i8ts4r$iu4$1...@fred.mathworks.com>...

> I found the solution for this.
>
> Download ccleaner and run the registry cleaner. Since R2010a is uninstalled, the registry is still pointing towards R2010a. After running the registry cleaner, the problem is fixed.
>
> Thanks

Thanks for the tip, but again, if we are already running matlab, how can we simply open the m file ONLY, rather than launch another instance Matlab and its editor?

Jonathan

Jonathan Wang

unread,
Jan 5, 2011, 12:11:04 AM1/5/11
to
Sorry, Ethan Leong's method works. You just need to run ccleaner and fix registry issue, and then it should work and open new m in editor only, rather to lauch another instance of matlab. It did not work in the first time, but works thereafter...

Thanks you, Ethan Leong.

Jonathan

"Jonathan Wang" wrote in message <ig0sla$m89$1...@fred.mathworks.com>...

Jesse Sipple

unread,
Jan 19, 2011, 12:41:07 PM1/19/11
to
I'm having the same problem. I downloaded the ccleaner and ran the registry cleaner but it still opens a new matlab program every time I try to open an m-file. Were there any tricks you did after running ccleaner to get it to be associated with the proper program?

I tried the link below with associating the file type to the matlab.exe in C:\Program Files\MATLAB\R2010b\bin\win64
http://www.mathworks.com/help/techdoc/matlab_env/f8-8880.html#f8-28791

I'm running 2010b on Windows 7 64-bit. Glad to see I'm not the only one with this problem.

Thanks for the help,
Jesse

"Jonathan Wang" wrote in message <ig0uh8$njr$1...@fred.mathworks.com>...

Jonathan Wang

unread,
Jan 19, 2011, 3:05:05 PM1/19/11
to
Hi Jesse,

Here are steps that works for me: I closed matlab first, then ran ccleaner, ran Matlab as administrator (it gave me some error information when running the script stuff, I forgot the detail), restarted the operating system, then it works in the expected way. It should not be like this, but I failed a couple of times before I did the above. it's simply weird in my case. hehe

You can try the above steps and it should work.

P.S. the association with some other file extension (not m file) failed once, and I had to repeat the above process again to make it work again. It's indeed weird in my case.

Jonathan


"Jesse Sipple" <jesse.sipple'remove.this'@tufts.edu> wrote in message <ih77nj$lvd$1...@fred.mathworks.com>...

Jonas

unread,
Feb 21, 2011, 2:37:04 PM2/21/11
to
-CUMBERSOME SOLUTION-
Ok tried a lot of things and nothing worked so finally:
1. Close all applications and folders, (don't have any m-files on desktop either)
2. Go to regedit HKEY_currentuser\microsoft\windows\explorer\file_assosciation [in essence, real adress is somewhat different], delete the key .m and others of interest.
3. Uninstall MATLAB
4. Restart system
5. Install MATLAB
6. Tada!


Hope this will be helpful!

Muhammad Tauha Ali

unread,
Mar 6, 2011, 6:06:04 AM3/6/11
to
Easy Solution:

copy and paste this in the command window:


commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.m') ;cd(cwd); disp('Changed Windows file association. M-files are now associated with MATLAB.')

it's mentioned on:
http://www.mathworks.com/help/techdoc/matlab_env/rmvd_matlablink__14.html

Jonas

unread,
Mar 6, 2011, 6:21:19 AM3/6/11
to
I think that is the first thing everyone with this problem tries, sadly it does not work in this case.

"Muhammad Tauha Ali" <tau...@hotmail.com> wrote in message <ikvpqs$d6u$1...@fred.mathworks.com>...

Mammar

unread,
Apr 3, 2011, 6:25:13 AM4/3/11
to
"nishant " <mishra....@live.com> wrote in message <i8pmcb$doc$1...@fred.mathworks.com>...

Hello Every body, i had also the same problem ( R2010b with Win7 64bit).
The solution is :
1- Choose installation type: Custom
then when MATLAB asked for specify products to install (Toolboxs)
2- Diselect the first one , i.e : diselect "" MATLAB Distributed Computing serveor 5.0""
then MATLAB will ask you to select file's extensions:
3- Select all of the associate files types to open with the application
and that it ....
Hope this will help ......Enjoy

Chad

unread,
Nov 8, 2011, 2:58:10 AM11/8/11
to
> Hello Every body, i had also the same problem ( R2010b with Win7 64bit).
> The solution is :
> 1- Choose installation type: Custom
> then when MATLAB asked for specify products to install (Toolboxs)
> 2- Diselect the first one , i.e : diselect "" MATLAB Distributed Computing serveor 5.0""
> then MATLAB will ask you to select file's extensions:
> 3- Select all of the associate files types to open with the application
Then reinstall
> and that it ....
> Hope this will help ......Enjoy
I tried it by not reinstalling it did not work.

Thank you so much for the solution

Steven_Lord

unread,
Nov 8, 2011, 9:27:50 AM11/8/11
to


"Chad " <dr_x...@yahoo.com> wrote in message
news:j9anei$8k9$1...@newscl01ah.mathworks.com...
Find the equivalent of this page in the documentation for your installation.
It should be in the Startup and Shutdown section:

http://www.mathworks.com/help/techdoc/matlab_env/bs6j5lz.html

--
Steve Lord
sl...@mathworks.com

Casper

unread,
Nov 18, 2011, 11:44:14 AM11/18/11
to
I also got this problem, on one computer only;
I've got a laptop which does not display this behaviour, i.e.: when I double-click an m-file, it opens it in the editor when Matlab is already running, and starts Matlab when it isn't.
And I've got a main pc, which does display this behaviour, i.e.: when I double-click an m-file, it opens a NEW instance of Matlab WITHOUT that file in the editor.

Changing the file associations, as mentioned here several times, doesn't do anything, since m-files are already associated with Matlab (it would open access if they were hijacked).
Reinstalling Matlab does not solve the problem.

However, I did notice something odd; it opens a dos-window just before starting Matlab. Might that be the cause for the behaviour?

neiho

unread,
Feb 9, 2012, 11:51:13 AM2/9/12
to
Before this solution, you should unassociate file types (i.e., .m) first.
use this tool http://www.winhelponline.com/articles/231/1/An-Utility-to-Unassociate-File-Types-in-Windows-7-and-Vista.html
then "delete file type"

"Mammar " <mamm...@hotmail.fr> wrote in message

Amir

unread,
Feb 21, 2012, 1:34:12 PM2/21/12
to
If anybody still suffer from such problem, just let me know.

Godzilla

unread,
Mar 15, 2012, 7:14:18 PM3/15/12
to
"Amir " <am.t...@gmail.com> wrote in message <ji0o34$6h3$1...@newscl01ah.mathworks.com>...
> If anybody still suffer from such problem, just let me know.

What is the final and confirmed solution to this problem?

It seems that some things work and others do not. And the help links from Matlab are all broken or of little use.

Godzilla

unread,
Mar 15, 2012, 7:17:18 PM3/15/12
to
"Amir " <am.t...@gmail.com> wrote in message <ji0o34$6h3$1...@newscl01ah.mathworks.com>...
> If anybody still suffer from such problem, just let me know.

Steven_Lord

unread,
Mar 16, 2012, 10:07:11 AM3/16/12
to


"Godzilla " <godz...@tokyo.edu> wrote in message
news:jjtt4a$gk8$1...@newscl01ah.mathworks.com...
Search the documentation included with your version of MATLAB for the phrase
"associate files with MATLAB" and the documentation for MATLAB will contain
the instructions for the approach that should work. If it doesn't, you
should contact Technical Support to determine what's preventing it from
working.

dick mini

unread,
May 2, 2012, 9:12:18 PM5/2/12
to
Delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m
in the registry (type "regedit" in the start menu)
and the matlab editor works and the icon for m-file is correct.
That is the key operation to solve the problem.


"nishant " <mishra....@live.com> wrote in message <i8pmcb$doc$1...@fred.mathworks.com>...

Gordon

unread,
May 25, 2012, 1:47:25 AM5/25/12
to
"Feng Shengzhen" wrote in message <jnsm1i$hpo$1...@newscl01ah.mathworks.com>...
> Delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m
> in the registry (type "regedit" in the start menu)
> and the matlab editor works and the icon for m-file is correct.
> That is the key operation to solve the problem.
>
Yes, this is the key,
and after this step you have to set "open" as default option for manipulating with .m files
(in folder options - file types - .m files - advanced)

ahahah

unread,
Jun 11, 2012, 5:08:07 PM6/11/12
to
Sorry, but if you modify windows register the only thing you do is to delete the association with file, but it's not always true (and i'm in this case) that it takes to solve the problem.

After deleting with regedit, after reboots, etc... always the same problem!
Clicking on .m, .mat, .fig open Matlab but not the clicked file!

Please don't say to read the help because, again, it's not the solution.
I'm running r2012a 64bit on Win7 64bit.

Steven_Lord

unread,
Jun 11, 2012, 5:28:31 PM6/11/12
to


"ahahah " <asd...@ttyuty.it> wrote in message
news:jr5mnn$19m$1...@newscl01ah.mathworks.com...
Please work with Technical Support to determine the cause of this problem.

Casper

unread,
Jun 12, 2012, 4:34:07 AM6/12/12
to
"ahahah" wrote in message <jr5mnn$19m$1...@newscl01ah.mathworks.com>...
If the help doesn't help, even after deleting the file associations, it either means that something is re-registering the extensions as you delete them, or that something is preventing deleting corresponding values in regedit.

However, what you're describing is something else; matlab opens, but does not open the corresponding m-file (or fig, or whatever), which means that Matlab is started to handle the file, but isn't passed the actual file. Presumably, you've associated the files with the 'Matlab starter' (or whatever it's called), and not with Matlab itself.

While the usual way would be to uninstall Matlab, then delete the registry entries detailing the relevant extensions (*.m, *.mat, *.fig), and finally reinstalling Matlab, but it should be possible to register the extensions with the correct *.exe, which should be ""C:\Program Files\MATLAB\R2011a\bin\matlab.exe", assuming you're running 64-bit Matlab on and x64 PC.

I've had a similar problem, but after deleting the entries in the registry and using the commands found in the help the problem disappeared.

ahahah

unread,
Jun 15, 2012, 11:43:06 AM6/15/12
to
I've found a way already explained in this forum.
I uninstalled Matlab and reinstalled unchecking the first entry in the custom installation (Distributed computing...)

The first time i installed no icons appeared on the desktop and no associaton made.
With this method all problems are solved.

So, let try associate .m files with matlab.exe in \bin folder first (because in \bin\win64 doesn't run).
And then, if the problems are not solved, reinstall matlab with this tip.

Bye

Johannes

unread,
Nov 25, 2012, 7:52:09 PM11/25/12
to
I had the same problem today and as it turned out, that you shall not name a function "open.m" ^^

Somehow that seemed to bother Matlab and as soon as i deleted that function everything worked well again.

I mean... seriously?

Give it a try.. create a function called "open.m" and try to open a file in Matlab's editor... funny, huh?

Steven_Lord

unread,
Nov 27, 2012, 11:09:57 AM11/27/12
to


"Johannes " <spam...@gmx.at> wrote in message
news:k8uefp$gii$1...@newscl01ah.mathworks.com...
If you create a function with the same name as a function included in MATLAB
(like OPEN)

http://www.mathworks.com/help/matlab/ref/open.html

and that function doesn't do the same thing as the MATLAB function, you may
impact the behavior of other functions or functionality that uses that
function.

Wayne

unread,
Nov 28, 2012, 9:39:17 AM11/28/12
to
DO NOT manually delete registry settings nor use fileassoc!

In R2010b, a new method for registering file associations was introduced. It allows multiple installed versions of MATLAB to have their own file associations (i.e. no more m-file progid). This allows you to easily switch your file associations from one version of MATLAB to another. To avoid the problem below, uninstall the pre-R2010b version of MATLAB before installing any of these newer versions. If you’ve already screwed things up, then reinstall the new version. These newer versions can be installed or uninstalled in any order.

"Feng Shengzhen" wrote in message <jnsm1i$hpo$1...@newscl01ah.mathworks.com>...

Casper

unread,
Nov 28, 2012, 2:54:15 PM11/28/12
to
The problem with file associations is quite well-known, and the 'new method' does nothing to alleviate it, to my knowledge. It actually can interfere with the Windows 7 method of extension management, and result in the 'matlab opens but does not open my m-file'-problem.

The problem usually disappears by uninstalling, deleting the file associations through the registry or an utility, and reinstalling. Messing with the registry can be quite dangerous, but if someone follows the instructions, there is no danger of damage to any system or program. Same goes for utilities.

"Wayne" wrote in message <k957ml$r1u$1...@newscl01ah.mathworks.com>...

Matt H

unread,
Jan 28, 2013, 12:06:08 PM1/28/13
to
Finally worked (note my issue was with .mat files, not .m; adjust as needed):
- If applicable, clear association with any other program that's effing with your file.
- Run Matlab as admin, type:
commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.mat') ;cd(cwd)
- Exit out of matlab
- 'Open with', navigate to [parent]/MATLAB_R2012B\bin/matlab.exe
(using this version, as opposed to the bin/win64/MATLAB.exe finally fixed the issue)

Note: The first step was important, because it was not letting me associate with anything but the 'application starter' for Matlab.

Felix

unread,
Feb 5, 2013, 11:09:13 AM2/5/13
to
"Matt H" wrote in message <ke6b60$fvv$1...@newscl01ah.mathworks.com>...
Thanks I can confirm, this actually worked for my .m files (here with win8, and matlab 2012a).
Importantly, if the files are already associated with the starter application, change this first e.g. by chosing wordpad as default program to open .m files, and follow the other steps.
Now they open in the matlab editor as they should.

Mohamed Talaat Harb

unread,
Feb 8, 2013, 3:00:09 AM2/8/13
to

> but it throws error saying cannot modify the registry....
> i am using win7 64bit...this problem is really irksome....please help

The steps you did was right...the only thing missing that before opening Matlab and doing this steps you had to run it as administrator...(Right Click the Matlab shortcut and choose run as administrator)...
Then in the command line you can write what ever you like without "Matlab can't..." message

Jesse Sipple

unread,
Feb 13, 2013, 10:16:06 PM2/13/13
to
"Matt H" wrote in message <ke6b60$fvv$1...@newscl01ah.mathworks.com>...
This works! I just associated the files with notepad before doing this and it worked great!

Zack

unread,
Apr 21, 2013, 4:55:09 PM4/21/13
to
"Jesse Sipple" <jesse....@tufts.edu> wrote in message <kfhktm$rhr$1...@newscl01ah.mathworks.com>...
Worked well for me only after I first de-associated the .m files by applying the command:
fileassoc('delete',{'.m','.mat'}) followed by fileassoc('add',{'.m','.mat'}) .
Thanks !

zemero...@gmail.com

unread,
May 2, 2013, 4:16:36 PM5/2/13
to
Final solution (thanks to Mohamed Talaat Harb, Zack, Matt H, Felix, Jesse Sipple)

- Right click on m file, properties, opens with: [change], change the program that .m file starts with to notepad
- w/ windows explorer, navigate to \Program Files\MATLAB\2012b\bin (or similar folder where matlab.exe is located)
- right click on matlab.exe and run as administrator
- in command window, type:
commandwindow; cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']);
fileassoc('delete',{'.m','.mat'}); fileassoc('add',{'.m','.mat'}); cd(cwd)
- close Matlab
- navigate to folder that contains any .m file
- right click .m file, properties, opens with: [change], MATLAB (R2012b) should have appeared. Select it, click ok, click ok.

Should be all good to go!

alvinsa

unread,
Sep 9, 2013, 9:04:09 AM9/9/13
to
Hello

I did not find the complete solution to my case here, so 1st post to give my feedback on this subject (but I was close to the solution thanks to you, thank you very much ;) ).
Finally, as I expected, it is not a direct matlab problem but a Windows one. I found a clue to the solution here : http://support.microsoft.com/kb/258860/en
Indeed, it seems that Windows can do several associations with any extension file. The "fileassoc" command remove only extensions in folder HKEY_LOCAL_MACHINE/software/classes or in HKEY_CLASSES_ROOT, but association can also be performed in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts for example, and it takes the lead !

So finally, in my case, the steps I followed to be sure to perform a correct association are :
1 - use fileassoc('delete', {'.m','.mat','.mdl','.mdlp','.fig','.p','.mlprj','.mexw32'})
2 - delete (manually) the association still present in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt (start=>execute=>regedit to edit registry, admin rights should be needed)
=> maybe association could be found in other locations, be careful to find all of them !
3 - use fileassoc('add', {'.m','.mat','.mdl','.mdlp','.fig','.p','.mlprj','.mexw32'})

Step 1 and 3 are perfectly described by other people in this group, so I do not give more details. I did not find step 2 anywhere (or I missed it) and it was the main issue to me.

=> if it did not work for you, that could be another association in your registry exist somewhere, you have to find it and delete it in step 2. Good luck :)
=> uninstall completely matlab + reboot of PC + complete install of maltlab did not work ! Association was still present in Explorer...
=> problem still present even using dedicated tools that should clean registry ! (I used CCleaner without a good result :( ). So, manual action seems to be required.

My config : Windows XP, matlab 2011b
My problem : bad association with .mdl files, matlab was opened but the simulink model did not open.

I hope that it will help people that experienced the same issue than me.
Regards.

Yair Altman

unread,
Sep 9, 2013, 10:21:06 AM9/9/13
to
Readers of this thread might also find the following article useful:

http://undocumentedmatlab.com/blog/matlab-dde-support/

Yair Altman
http://UndocumentedMatlab.com

Zhanhong

unread,
Sep 10, 2013, 10:51:06 AM9/10/13
to
"Mark Shore" wrote in message <i8q1ek$g8o$1...@fred.mathworks.com>...
> This works more or less the same way in Windows 7 64-bit as it did in other versions. In Windows Explorer (i.e. the file browser) double-click on an m file. If the .m extension is not associated with another program (the way MS Access hijacks the .mat extension, for example) then a dialog box will open asking you to either use a web service to find the right program or for you to select it manually. Choose the latter, make sure the always use this program box is checked, and select the version of MATLAB you want to use.

by "select the version of MATLAB" do you mean "MATLAB/R2012a/bin/matlab.exe"? or which exe file?
I tried and it lead to the problem of open a new instance of MATLAB when click on m file even when another MATLAB is already running. And it doesn't open the file.

Gian Luigi

unread,
Mar 14, 2014, 6:56:08 AM3/14/14
to
"Mohamed Talaat Harb" wrote in message
> The steps you did was right...the only thing missing that before opening Matlab and doing this steps you had to run it as administrator...(Right Click the Matlab shortcut and choose run as administrator)...
> Then in the command line you can write what ever you like without "Matlab can't..." message
> cwd=pwd; cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add','.m') ;cd(cwd); disp('Changed Windows file association. M-files are now associated with MATLAB.');

It worked for me.
You have to manually run Matlab as administrator (also if you already are). Then run the code above, restart matlab and it works !
I also run the same code with .mat and .fig extension

Muhammad Rehan Abbasi

unread,
Mar 15, 2014, 2:49:08 AM3/15/14
to
I found the solution. Open MATLAB as administrator and type the following:

cwd=pwd;
cd([matlabroot '\toolbox\matlab\winfun\private']);
fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]});
cd(cwd);
disp('Windows file associations changed. FIG, M, MAT, MDL, MEX, and P files are now associated with MATLAB.')

It worked for me.

kon...@gmail.com

unread,
Apr 17, 2014, 6:41:01 PM4/17/14
to
There are two ways to fix that issue
1. Method ONE
a) Open Matlab as Administrator and go to MATLAB_FOLDER\toolbox\matlab\winfun\private

b) execute the code:
cwd=pwd;
cd([matlabroot '\toolbox\matlab\winfun\private']);
fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]});
cd(cwd);

c) Right clik on .m file "Open with" select "Choose default program..." make sure that option "Use this app for all .m files" and select "MATLAB R2013a"


2. Method TWO (More risky)
a) Create a backup of your Regedit
b) Open Regedit and Delete fallowing entries:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m
HKEY_CLASSES_ROOT\.m
HKEY_CLASSES_ROOT\MATLAB.m.8.1.0
HKEY_CLASSES_ROOT\matlab.exe

c) Create .txt file and paste:

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0]
"FriendlyTypeName"="@C:\\Program Files\\MATLAB\\MATLAB Production Server\\R2013a\\bin\\win64\\matlab.exe,-58"
@="MATLAB Code"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\DefaultIcon]
@="C:\\Program Files\\MATLAB\\MATLAB Production Server\\R2013a\\bin\\win64\\m.ico,0"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell]

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Open]
@="Open"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Open\command]
@="\"C:\\Program Files\\MATLAB\\MATLAB Production Server\\R2013a\\bin\\win64\\matlab.exe\""

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Open\ddeexec]
@="uiopen('%1',1)"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Open\ddeexec\application]
@="ShellVerbs.MATLAB.8.1.0"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Open\ddeexec\topic]
@="system"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Run]
@="Run"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Run\command]
@="\"C:\\Program Files\\MATLAB\\MATLAB Production Server\\R2013a\\bin\\win64\\matlab.exe\""

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Run\ddeexec]
@="run('%1')"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Run\ddeexec\application]
@="ShellVerbs.MATLAB.8.1.0"

[HKEY_CLASSES_ROOT\MATLAB.m.8.1.0\Shell\Run\ddeexec\topic]
@="system"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m\OpenWithList]
"a"="MATLAB.exe"
"MRUList"="ab"
"b"="NOTEPAD.EXE"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m\OpenWithProgids]
"m_auto_file"=hex(0):
"MATLAB.m.8.1.0"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.m\UserChoice]
"Hash"="bLHK1uKH5l4="
"ProgId"="MATLAB.m.8.1.0"

[HKEY_CLASSES_ROOT\.m]
@="MATLAB.m.8.1.0"
"Content Type"="text/plain"
"PerceivedType"="Text"

[HKEY_CLASSES_ROOT\.m\OpenWithProgids]
"MATLAB.m.8.1.0"=""

[HKEY_CLASSES_ROOT\.m\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\.m\Versions]

[HKEY_CLASSES_ROOT\.m\Versions\MATLAB.m.8.1.0]
"FileVersionMS"=dword:00080001
"FileVersionLS"=dword:00000000

d) Save file as fixmatlab.reg or save and change extension to .reg
e) run .reg file







s183114

unread,
Apr 22, 2014, 11:50:11 AM4/22/14
to
Method ONE works as a charm on Windows 8.1 x64. Thanks!

kon...@gmail.com wrote in message <50be4ef0-9b82-495d...@googlegroups.com>...

Paul

unread,
Aug 14, 2014, 2:45:08 AM8/14/14
to
zemero...@gmail.com wrote in message <514c4aed-4ee6-4178...@googlegroups.com>...
I can also confirm that this WORKS! :)

thank you

Diego

unread,
Mar 12, 2015, 5:18:14 PM3/12/15
to
This one worked for me!! I have been looking for this forever!! thanks1

John

unread,
Jul 28, 2015, 2:22:13 AM7/28/15
to
This worked for me, thanks! (Win 7 x64, Matlab R2012a)
0 new messages