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
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:
I hope this helps!

Lorenzo
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

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by