My Matlab Editor cannot show any contents about .m file, and all editor windows is black.

69 views (last 30 days)
Without any error information, and this error is very strange.
  7 Comments
Jan
Jan on 18 Dec 2022
Edited: Jan on 18 Dec 2022
@Junhao Ding: I love it. This is the most weird Matlab error I've ever seen.
Do you work with Admin privileges? Without this it should be impossible to destroy the installation such tremendously.
I'd re-install Matlab.
Star Strider
Star Strider on 18 Dec 2022
@Junhao Ding — Before you do any re-installation, I stil suggest contacting technical support at the link I provided in my earlier Comment.
The reason is that this is an error that MathWorks probably needs to know about so they can understand what went wrong and how to fix it. This may be a strange bug that needs to be reported for that reason.

Sign in to comment.

Answers (1)

Harshit Gupta
Harshit Gupta on 21 Dec 2022
As per my understanding, your MATLAB Editor window was appearing black.
This can happen due to several different reasons:
  1. This issue can be caused by restricted privilege and access to the MATLAB process. The issue can be resolved by granting appropriate permissions to the MATLAB session. If your organization is using tools like PowerBroker, then the issue can be resolved by changing the policies inside PowerBroker.
  2. If you are trying to connect to MATLAB via a Remote Desktop application. If that is the case, then check if the same issue can be seen while opening the doc and AppDesigner. This can be done using the following commands in the MATLAB Command Window:
>> doc
>> appdesigner
If so, try starting MATLAB using the "-cefdisablegpu" flag from the Windows Command Prompt:
matlab -cefdisablegpu
This should resolve the issue.
But since you have already recreated the MATLAB preferences, I recommend you re-install MATLAB as already suggested by @Jan. You can refer to the following documentation link for information on how to uninstall MATLAB: https://www.mathworks.com/help/install/ug/uninstall-mathworks-products.html
If the issue still persists, feel free to contact our Technical Support team for further assistance.
Hope this helps!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!