MATLAB 2022b .m files stopped opening on MacOS

When I try to open any .m, I just get a blank screen on the editor. But very interestingly, I can still open and edit .mlx files. I tried restarting MATLAB and my laptop, but that didn't help either :(
I'm on a MacOS Monterey with MATLAB 2022b.

답변 (1개)

Dvarkesh Madhu
Dvarkesh Madhu 2023년 3월 7일
편집: Stefanie Schwarz 2025년 5월 9일

0 개 추천

Hi Shamoil,
1. Are you trying to open the .m file as a live script?
In that case, save .m as a UTF-8 format, or save it as a live script code(.MLX).
2. Or are you connecting to MATLAB via remote desktop applications? In that case, try starting MATLAB using the "-cefdisablegpu" flag from your system command prompt:
matlab -cefdisablegpu
3. Another thing you can try is to update your graphics driver and see if that resolves the issue.
4. Or start MATLAB using the”-softwareopengl” flag from your system command prompt:
matlab -softwareopengl
5. If the above does not help, you can try to restore the default path and rehash toolbox cache as explained here:
If the issue still persists, feel free to contact our Technical Support team for further assistance.
Hope this helps!

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2023년 3월 4일

편집:

2025년 5월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by