Clear Filters
Clear Filters

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

3 views (last 30 days)
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 Comments
Sangheon Ahn
Sangheon Ahn on 6 Oct 2022
Edited: Sangheon Ahn on 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.

Sign in to comment.

Answers (1)

Amish
Amish on 30 Oct 2023
Edited: Amish on 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!

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!