Freezes when running commands
40 次查看(过去 30 天)
显示 更早的评论
Update: Needed to be able to use Matlab so ended up uninstalling and reinstalling. I don't know what the issue was but it does what I need.
I'm using R2018a on OSX 10.14. Yesterday I was able to use/edit/run a script that grabbed data from a network drive without any issues. The network drive remained connected overnight. Today I attempted to run the same script again but Matlab froze and I was unable to break using Ctrl + C. After restarting, Matlab opened to a directory in the network drive and I was able to navigate using the Address Bar but not through the Current Folder window. Tools from the Plots and Apps menu bars seemed to not be loading. I was also able to type in the open script in Editor, close Editor tabs, and open new tabs, but couldn't open existing scripts. Simple commands through the command window (e.g. just typing the number 2 and hitting enter) went on forever and didn't respond to Ctrl + C.
After reading some posts about network issues, I force closed Matlab and disconnected the network drive, then restarted Matlab and got the usual "Warning: Name is nonexistent or not a directory". Same problems as above. After another restart, I didn't get any warnings but still had the same problems. Restarted computer and threw in some system updates as well. Still having the same issues. It also doesn't respond when I click "Set Path" or "Preferences" in the Home menu bar.
Trying to exit out right after startup gives me the "An operation is in progress" window. Ctrl + Q doesn't do anything. It hasn't given me any actual errors, it just doesn't respond.
How do I fix this?
2 个评论
Rebecca Culver
2020-9-30
编辑:Rebecca Culver
2020-9-30
I had the exact same issue today. Obviously a long time ago, but do you by chance remember how this issue was resolved?
Nipun
2022-6-16
Hi, these issues can occur if sone commands have been stopped abruptly causing the network drive listed as unrecognised. While you may expect fewer such issues in the new versions (with the R2022 release), here is a MATLAB answer that might help: https://in.mathworks.com/matlabcentral/answers/97966-why-am-i-unable-to-browse-to-a-mapped-network-drive-when-activating-on-windows-7
Cheers!
Nipun
回答(1 个)
Rupesh
2024-5-27
Hi Xiaoting,
To address the issue with MATLAB on your OSX 10.14 system, especially after encountering problems with scripts and network drives, first try resetting MATLAB's preferences. Close MATLAB, navigate to ~/Library/Application Support/MathWorks/MATLAB, and rename the preferences directory for R2018a. This forces MATLAB to regenerate default preferences, potentially resolving erratic behavior. Ensure your network drive is accessible and stable, as network issues could exacerbate the problem.
If resetting preferences doesn't help, consider running MATLAB in safe mode by holding down the Shift key immediately after starting the program. This can help bypass issues caused by startup scripts or path problems. As a last resort, reinstalling MATLAB might be necessary, ensuring you backup any essential scripts or data beforehand. These steps target the core issues without extensive system or software diagnostics.
you can refer to below matlab answer for more information
Hope this helps!
Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!