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.
"Jesse Sipple" <email@example.com> wrote in message <firstname.lastname@example.org>... > 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 <email@example.com>... > > 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 <firstname.lastname@example.org>... > > > "Ethan Leong" <email@example.com> wrote in message <firstname.lastname@example.org>... > > > > 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