Matlab Freezes when Double Clicking to Open M Files
16 views (last 30 days)
Show older comments
Hi, I can't seem to figure out what's wrong with my MATLAB install.
When I'm working in MATLAB, I cannot double-click on any m-files or such in the "current folder" pane and get them to open in the editor. This has always worked before, but for the past 6 months this problem has been occuring. When I double-click on a file in the folder pane, MATLAB just sits there, never opens the double-clicked file, and ceases to respond to any other commands. The only solution is to restart the program. So, if I want to open a file in editor, I have to use edit xxxxx at the command line.
I have reinstalled MATLAB as a fresh install and still the problem persists.
Answers (2)
Yash
on 21 Aug 2024
Moved: Image Analyst
on 21 Aug 2024
Hi John,
The issue you are facing is encountered by various users. Please try the following workarounds:
1. Comment out lines associated with video files:
- Type "edit finfo.m" in the MATLAB command line.
- Comment out the following line:
[ext, description] = getVideoInfo(filename,ext);
The above steps have been mentioned in the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/89422
2. Use the MATLAB file association shortcut fix:
- Downlaod the zip file: https://www.mathworks.com/matlabcentral/fileexchange/51165
- Extract it and run matlab script named associateFiles.m in Matlab. By running this script, a new file with extension *.reg will be generated in same folder.
- Go to folder and double click on this *.reg file. Regisrty will be updated.
- Now restart Matlab.
Other relevant resources:
- Why is a new instance of MATLAB opened when I double-click on a MATLAB file in Windows Explorer even if I have one instance of MATLAB already open on my Windows 7 machine? - https://www.mathworks.com/matlabcentral/answers/93468
- .m file not opening in editor - https://www.mathworks.com/matlabcentral/answers/493148
I hope this helps!
0 Comments
Lorenzo
on 27 Aug 2024
As I said before, I have the same problem, with the addition that even from the command line "edit xxxx.m" hangs for about twenty seconds. I realised that some network drives mapped on my PC were offline. In my case it was a local NAS that had switched off. By reactivating the NAS everything seems to be working normally. Note that I was not using files on the NAS nor does my path contain anything on that NAS
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!