Matlab editor freezes often... can't edit files

조회 수: 39 (최근 30일)
Corey
Corey 2013년 3월 22일
댓글: Mireia Torralba 2023년 11월 8일
Using Matlab R2012b 8.0.0.783, Win 8 x64. I am having two problems with this version of Matlab:
1) The Matlab interface constantly 'freezes'. When it freezes, I can interact with some elements of the GUI (eg, I can double-click on text in the M-file editor and it highlights), but the text insertion point does not show up, and I can't edit or type into the window, and I can't execute any commands in Matlab, even through the menus. However, I can click through the different menu tabs. After about a minute, the GUI responds as normal.
2) Overall, Matlab response is very slow.
This makes it difficult to use Matlab at all, I am thinking about uninstalling and using a older version. Is anyone else having these kinds of problems?
  댓글 수: 1
Mireia Torralba
Mireia Torralba 2023년 11월 8일
I have the same issue, but now happening with the 2022 version. What I am thinking off is about switching to Python, it does not make sense that for whoever knows the reason now it is not possible to make a propper cleaning of the data and therefore it is necessary to restart Matlab from time to time.

댓글을 달려면 로그인하십시오.

답변 (6개)

Andrew
Andrew 2015년 9월 15일
Older question, but I think the answer is a spotty connection to a network .m file. I had a dozen m files open, and I could only edit half of them - the ones saved locally. I had a poor network connection, so I think Matlab freezes network files until there is a good connection.
  댓글 수: 1
John Hatrick
John Hatrick 2016년 5월 17일
편집: John Hatrick 2016년 5월 17일
I am having this issue as well, and I think it began just after starting to work from files saved on a network drive. Will try saving the files locally and see if my laggy freezy MATLAB comes back to life.
Update: seems to work! The .m files seem to be the culprit. Luckily it seems .mat or other imported data are OK to source from non-local drives.

댓글을 달려면 로그인하십시오.


Soumendu Majee
Soumendu Majee 2018년 11월 4일
I had the same issue. I couldn't edit text in the editor and the command window. But the GUI buttons still worked.
One hack to solve this is to create a new figure and close it. I added a shortcut button in the toolbar to do the same. Here is the code:
temp_fig = figure;
pause(0.1)
close(temp_fig);
clearvars temp_fig;
Is there any permanent fix?
  댓글 수: 1
Jonathan SOARES
Jonathan SOARES 2023년 10월 6일
It's unbelievable, but it works just fine! I'm using MATLAB 2021a, and it keeps freezing on me. Normally, I have to wait for it to come back, but it starts freezing again shortly after. I can barely save my work before having to restart the program. However, with this solution, whenever I manage to execute the trick, the freezing stops as if I had restarted everything.

댓글을 달려면 로그인하십시오.


Andreas Goser
Andreas Goser 2013년 4월 5일
I am aware of the following customer issue that may or may not be related:
Slow response similar to what you describe, but in the EDITOR. This may be address by changeing strict m-lint settings.
When you re-install, better choose R2013a while you are installing anyway. And if you still encounter issues contact Technical Support.

Jay Carroll
Jay Carroll 2015년 11월 30일
편집: Jay Carroll 2015년 11월 30일
I have the same problem as the original post. In editor, my backspace button will work, but I cannot type any text until I restart matlab. It has occurred twice in 2 days on Matlab R2015a 8.5.0.197613 64 bit on windows 7. No apparent connection issues. All of my files are local. It is clear this happens on more than one computer. My computer shows no slowdown in the event. I simply can't add text to my script (I can delete as much as I'd like).
  댓글 수: 1
Stephan
Stephan 2016년 3월 1일
Same problem here (Win 7, Matlab 2015b 8.6.0.267246). Any solutions?

댓글을 달려면 로그인하십시오.


Michelle Hirsch
Michelle Hirsch 2013년 3월 25일
Hmmm, this sounds like it might be something about your specific setup - maybe best for MathWorks development to dig in with you to figure out what is going on. I suggest you contact technical support for help. You can submit a service request with the "Request Support" button on the far right side of the Home tab of the Toolstrip.
Sorry that you are having problems - I hope that we can sort them out for you.
- scott

Corey
Corey 2013년 4월 5일
Thanks for the suggestion Scott... I am still having this problem and I often have to close and restart Matlab. The GUI window just doesn't seem to accept any keyboard input in any of the windows (editor or command windows), but I can still use the mouse to click on things, close files, execute scripts, etc.
Since I seem to be the only one having this problem, I may try to reinstall first, and if that doesn't work I'll try your request support suggestion.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by