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

Without any error information, and this error is very strange.

7 Commenti

What has happened before? Update of Matlab, OS, graphics driver, color scheme? Does restarting Matlab or the computer help?
I was using app designer at that time, but it suddenly got stuck. I closed matlab through the task manager(windows 10) and re opened matlab. Later, I tried to restart the computer, but it didn't work. (without update of Matlab, OS, graphics driver, color scheme)
Include the link to this thread in your note to them so that you do not have to repeat all of this, and so that they can easily see the posted image.
Maybe the preferences are destroyed. Try to recreate them. Under Windows it the folders C:\Users\YourAccount\AppData\Roaming\MathWorks\MATLAB\R2022b (apply the obvious changes to your system). Rename this folder and start Matlab.
Thank you very much for your answer, but it didn't work. After the operation, the prompt character of the command line appears in the editor interface.
@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.
@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.

Accedi per commentare.

Risposte (1)

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!

Categorie

Prodotti

Release

R2022a

Richiesto:

il 18 Dic 2022

Risposto:

il 21 Dic 2022

Community Treasure Hunt

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

Start Hunting!

Translated by