Matlab working very slow on my m1 MacBook Pro

Hi,
I downloaded 2020b update 5 version which said to be compatible with rosetta 2. Although I downloaded the right version matlab works incredibly slow I even cannot close the app. I tried to do what https://www.mathworks.com/matlabcentral/answers/262442-java-heap-space-out-of-memory-problem this problem says but even though I disabled the MathWorks Source Control Integration it still was slow. Is it about the java heap memory and how much should I inrease that? Thanks.

10 Comments

I have the same issue here. I even ramped up the java heap memory as much as possible. Still slow and not useable.
People have been reporting problems since they installed the Big Sur OS update.
Same issue. Ended up going back to R2017b and it works much more smoothly on the M1 Air with the latest Big Sur update. Of course this won't help everyone, but might be worth a shot if you don't need any of the latest MATLAB features...
Updating to 2021 doesn't help.
I have similar issues, increased heap size to 2112 MB, and matlab is excruciatingly slow even with no variables loaded, on Macbook M1 Air 16GB ram 512GB storage (380GB available)
Mine performs a quite faster when I work offline. if its an option for the type of your simulation, maybe go try it.
I could also only solve this by changing version to 2017b, so plus 1 to comment by MYMartin1206
The 2022 version is so slow in MacOs Ventura. Did anyone found a solution other than installing the 2017 version?
Same here, it frustrating how slow it is. Live scripts work every full moon ...

Sign in to comment.

Answers (2)

In my case, the lag disappears if I start MATLAB from Terminal everytime. It's strange to see that while it could run good, it is running slow when started from the ususal App icon.

7 Comments

I start MATLAB by typing the following commmand in Terminal:
/Applications/MATLAB_R2021a.app/bin/matlab
Yes, I see this as well. Also, it hangs much more rarely.
Yilang Xu
Yilang Xu on 22 Jul 2021
Edited: Yilang Xu on 22 Jul 2021
Thanks! It fixed the frequent freeze issue.
Thanks, this solved the slow down/ freeze issue for me as well (on powervook M1 with Mac OS 11.5.2 Bug Sur.
This has helped a lot (on Mac M1 Max with MacOS 12.5 Montgomery)
Starting MATLAB from the terminal didn't help speed up things for me.
Mine runs REALLY SLOW. A job on my old macbook (2016) with 2.8GHZ intel i7 takes 5 minutes. On the new macbook M1 it takes 8 minutes. 60 percent longer!

Sign in to comment.

See this answer and follow it for updates related to this problem.

Categories

Asked:

on 4 May 2021

Commented:

on 6 May 2023

Community Treasure Hunt

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

Start Hunting!