Effacer les filtres
Effacer les filtres

Cannot open a script file after running a code (Mac M1 silicon)

3 vues (au cours des 30 derniers jours)
Sangheon Ahn
Sangheon Ahn le 6 Oct 2022
Modifié(e) : Amish le 30 Oct 2023
If i try to open a new (live) script file after running a code, the script becomes a blank.
I don't have this kind of problem when I use a laptop with Windows OS, but this only happens on my Mac (M1).
I am keep turning off and restarting the matlab everytime i want to change the .m file, but this is so inconvenient.
Anyone can help me please?
  2 commentaires
Rik
Rik le 6 Oct 2022
Is it only after running specific code?
Sangheon Ahn
Sangheon Ahn le 6 Oct 2022
Modifié(e) : Sangheon Ahn le 6 Oct 2022
Well, I think it is okay if I run a simple code, but almost all kinds of codes cause this situation.
For example, even after I run this example code https://kr.mathworks.com/help/matlab/matlab_prog/plot-categorical-data.html , I cannot open or run other scripts.

Connectez-vous pour commenter.

Réponses (1)

Amish
Amish le 30 Oct 2023
Modifié(e) : Amish le 30 Oct 2023
Hi Sangheon,
I see that you are facing issues with respect to the MATLAB editor, where the scripts are appearing blank after running the scripts. I also notice that this issue is occurring only in case of the M1 MacBook Machine that you are using.
Since you have not shared your logs, it is difficult to tell what the exact issue is, however, I could recommend you some of the common troubleshooting solutions for M1 Mac based machines.
  1. I see that you are using the R2021b version. You can alternatively try to install the MATLAB R2022b Native Apple Silicon Open Beta. The link of it can be found at: https://www.mathworks.com/support/requirements/apple-silicon.html
  2. I suspect that these kinds of issues could have been due to some opengl quirkiness. As a result, you could try the running the following in command window: “opengl hardwarebasic
  3. Since MATLAB uses opengl for its GUI and MacOS does not exactly have a proper support for it, this command enables a simpler version for it.
  4. At last, if the issue still persists, you could try contacting the official MathWorks support. Please refer to the following answer containing the steps for the same: https://www.mathworks.com/matlabcentral/answers/1814670-scripts-become-blank-and-unviewable-on-r2022a-b-m1-mac#answer_1065615
You could also refer to the following community discussion which highlights a similar problem: https://www.mathworks.com/matlabcentral/answers/1814670-scripts-become-blank-and-unviewable-on-r2022a-b-m1-mac
Hope this helps!

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by