Matlab Freezes when Double Clicking to Open M Files
15 次查看(过去 30 天)
显示 更早的评论
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.
回答(2 个)
Yash
2024-8-21
移动:Image Analyst
2024-8-21
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 个评论
Lorenzo
2024-8-27
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!