Matlab is very slow on macOS Big Sure

230 vues (au cours des 30 derniers jours)
tommaso taddei
tommaso taddei le 28 Juin 2021
Commenté : Nguyen le 6 Mai 2023
I am running Matlab R2020b on a MacBook Pro with MacOs Big Sur 11.4.
Quite often Matlab gets stuck in the sense that the editor becomes very slow (I cannot even type in the command window) and it is not possible to keep working. When I close it and reopen again, things improve and go back to normal.
When Matlab gets stuck, I realized that my Mac is running the process "sandboxd" so I suspect that my issue has to do with some clash between Matlab and MacOS.
Could anyone help me?

Réponse acceptée

Hang Yin
Hang Yin le 9 Juil 2021
Modifié(e) : Hang Yin le 12 Juil 2021
It seems that some Mac platform users encounter similar symptoms including myself. It had been suggested that run MATLAB from the command line with -nodesktop flag and then prompt desktop might fix this:
  1. run /Applications/MATLAB_R20xxx.app/bin/matlab -nodesktop in the terminal
  2. you may notice some "warnings". After warnings stop to scroll, type desktop. DO NOT EXIT THE TERMINAL!
  3. when you want to quit MATLAB, close the GUI window first and type quit in the terminal to exit the program.
The original discoverer of this workaround is a community contributor whom I can't really remember...
  6 commentaires
Jonathan Mynard
Jonathan Mynard le 19 Jan 2022
This solution doesn't work for me. I still get freezing when running from terminal.
YANYAN WANG
YANYAN WANG le 10 Fév 2022
This method not working for me. I have BigSur 11.6 and MATLAB 2021b, whenenver I use some specific functions, it crashes and quits. These functions worked well on MATLAB 2018 and even earlier versions.

Connectez-vous pour commenter.

Plus de réponses (3)

Fenglong Song
Fenglong Song le 25 Sep 2021
Hi, I encountered the same issue with both R2019b and R2021a. I solved the problem after this (the original blog is writtern in Chinese) https://gy23333.github.io/2019/12/16/Mac%E4%BD%BF%E7%94%A8Matlab%E5%8D%A1%E9%A1%BF%E4%B8%A5%E9%87%8D%E4%B8%94%E9%97%AA%E9%80%80%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/
In English: Enter Preferences -> General -> Source control and select 'None'.
I hope this helps.
  4 commentaires
Susan Eden
Susan Eden le 29 Mar 2023
This solution works for me. Thank you
Nguyen
Nguyen le 6 Mai 2023
Thank you a lot. You make my day ^-^

Connectez-vous pour commenter.


Homayoun Najjaran
Homayoun Najjaran le 3 Oct 2021
I had the same problem on one Mac Pro but not on another. They both have the same OS Big Sur 11.6 and Matlab 2021b. I got the idea from Hang Yin's tip. The problem happens when Matlab trys to launch the editor at start. Although Hang's solution works but starting Matlab from the terminal may be a little annoying.
The difference between my two Mac Pros was in their editor setting. On one of them the editor was docked and on another it was undocked. You need to undock the editor so that the editor does not open at launch automatically. It is okay if you open it after.
I hope it helps.
  1 commentaire
Jacob Sembaluk
Jacob Sembaluk le 14 Oct 2021
how do you undock the editor?

Connectez-vous pour commenter.


Yongjian Feng
Yongjian Feng le 5 Juil 2021
Open a terminal window from MacOS and type
top
This will tell you which process is taking most of the CPU time.
Also what is the spec of your MacBook Pro?

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by