Why does double clicking run an m file instead of open it in the editor?
Show older comments
Among numerous other issues with R2012a (messed up associations, no Start Menu shortcuts, extremely slow start times, etc.), when I double click on an m file in Windows Explorer, Matlab starts but tries (and usually fails) to execute the script (and usually fails). This is incredibly annoying and completely different from any other version of Matlab I have used. I'm on Windows 7 64 bit.
How can I change this behavior so that double clicking opens the m file in the Matlab Editor (not the standalone editor, but the editor in the full Matlab program)?
3 Comments
dpb
on 5 Apr 2014
I don't know where it is in Win 7 but you need to edit the file type association with the .m extension -- a search of the Win help for "file association" should find you the help on where they've hidden the access in the latest reincarnation.
I'm still at XP and there what you need is the "Folder Properties" under "Control Panel" and then "Edit File Type". There, there is an option of action for m-files of [Open|Run] from which to choose--it apparently on your system is "RUN" instead of "OPEN".
There's got to be a way to get there but at least on XP right-click on an m-file only shows the program association but won't let you get to the association for the file type (extension) for the action behavior change.
Andy Yancy
on 5 Apr 2014
dpb
on 5 Apr 2014
I see MS apparently broke it...that sucks big time. :(
I found a couple of links to some freeware utilities that seem to claim they bring back the functionality, otherwise it appears one would have to resort to registry editing manually. What a crock...
"I know nuthink!" (to quote Sgt Schultz) about either of the above.
I rarely if ever use Windwoes Explorer so probably wouldn't miss that particular keystroke/functionality but certainly the above is a killer, indeed.
Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!