Matlab does not have >> in the commend window.

22 次查看(过去 30 天)
Dear All,
Two days ago, my computer suddenly lost the electricity and Matlab was terminated when the electricity was gone. After that, I turned on my computer and started Matlab, I found Matlab could not start properly.
1) There is no >> in the commend window,
2) and it is always keeping initializing.
3) I path is not the path I usually worked on. The path is C:\Users\snow\OneDrive - Tarrant County College District\Documents\MATLAB. But my working path is G:\My_Dell_PC_Since_April_2025\Disk_E\NDSE_2020\Version26_Oncor_Test. I cannot select my woring path.
I tried to uninstall and install several times, but I still have the above problem.
Would Mathworks help me to fix this problem?
Thanks a lot.
Benson
  2 个评论
Matt J
Matt J 2025-8-7
编辑:Matt J 2025-8-7
Since it sounds like an installation problem, I think they would. Did you ask them?
Walter Roberson
Walter Roberson 2025-8-7
I would suggest moving aside the preferences directory.

请先登录,再进行评论。

回答(1 个)

Ayush
Ayush 2025-8-19,5:48
I understand you are facing issue with MATLAB UI and interface.
The issue you are experiencing is likely due to corrupted MATLAB configuration files or startup paths, which can happen when MATLAB is not closed properly, such as during a sudden shutdown. This is a common issue when MATLAB does not close gracefully.
To fix it, it's important to know that MATLAB stores user-specific settings in a folder called "prefdir". If the contents of this folder become corrupted, it can prevent MATLAB from starting correctly. Here is how you can reset these settings:
  • Try to manually delete the preferences folder: You can move to the following directory and clear or delete the folders matching your MATLAB version: "%APPDATA%\MathWorks\MATLAB". This resets MATLAB preferences, more like a factory reset, but without affecting your code or toolboxes.
  • You can try clearing MATLAB's cache folder: You can open the following path and clear the cache.
%LOCALAPPDATA%\MathWorks\MATLAB
  • Run MATLAB in safe mode to isolate the issue. You can try running matlab in safe mode using the following command on your command prompt:
matlab -safe
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by