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

12 次查看(过去 30 天)
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 个评论
Sangheon Ahn
Sangheon Ahn 2022-10-6
编辑:Sangheon Ahn 2022-10-6
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.

请先登录,再进行评论。

回答(1 个)

Amish
Amish 2023-10-30
编辑:Amish 2023-10-30
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!

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by