Serious problems in MATLAB 2021b running in Mac. Please help.
Show older comments
I am using MATLAB 2021b installed in a Intel Mac (the latest release of Mac Pro, not Macbook Pro).
I have the following problems.
(1) At the begiining of starting MATLAB, a cursor takes 20 seconds everying time moving from Editor to Command Window and vice versa. This problem goes away (occasiontally but not alwasys) in 10-20 minutes, but occasionally start again when restart MATLAB.
(2) Typying in Coommand Window and Editor responds slowly and ackwardly. Occassionally, it holds my typing for a second and suddenly all my typing appears at once. Like (1), it usually (not always) goes away in 10-20 minutes of using MATLAB, but comes again after restart (not always, but occasionally).
(3) More serioulsy, the following is happening with MATLAB 2021b.
a. runing a very simple script by pressing the "Rung Section" or "Run" button on the top of the matlab.
b. the calculations takes forever (for the simple script) and the "Run" Button changes to "Pause".
c. To quiet the calculation, pressing the 'Stop' button, but it does not work.
d. So, pressing the 'Pause' button and a new Editor window of a MATLAB built-in function pops up and indicate a line where it is paused. And the 'pause' button changes to 'Continue'.
e. Pressing the 'Continue' button, and it is paused again, and indicating a line where it is paused. The button also changes to to 'Pause' again.
f. Pressing the 'Pause' button again, and back to (e). After repeating (d) and (e) several times, I can finally get out of debugging mode. It is happening almost EVERY time.
(4) Copying few lines of code from Editor and passting them in Command Window and executing them takes few minutes until complete the calculations as simple as (i = 1:100; sum(i)).
I have been using MATLAB for more than 10 years. I did not have these problems before, except (1) and (2) started happening occasionally in 2020a/b versions.
For your information, it would not be a hardware issue. My computer is the latest mac pro with 98 GB RAM and 24 intel cores.
Any comment and suggestion would be appreciated. Thank you so much for the help in advance.
6 Comments
J Pries
on 29 Oct 2021
I’ve noticed very similar issues when upgrading to 2021b on MacOS 11.6 (Intel Mac). The IDE has become extremely fickle and frequently unresponsive. Often, I will run a script by clicking the UI interface and it won’t start until I hit enter on the blank command window.
Something is terribly broken with this release on Mac.
William Locke
on 13 Nov 2021
I just "updated" to 2021b from 2021a. I can not understand why the performance is so poor. I am finding the same problems explained above. I do not use or have Magnet.
Bill
igor tchertkov
on 21 Dec 2021
It sucks for me. Totally does. The tool that i have been using for years is practically unusable. In addition to all stuff described above, the new problem started, 2021b crashes all the time for unknown to MathWorks reason. I boiled it down to "clear all" command. This is a devasting command, not only the whole workspace is wiped clean as expected, but Matlab itself dies. Seriously. Does anybody on MathWorks side read this ??? I am on latest Mac OS, running on 3 years old Intel MacBookPro
SOS!!!!
Aron Magesh
on 11 Nov 2022
The same issue also exist for 2022b. Looks like MATLAB is not optimized for MAC OS.
António
on 21 Nov 2023
Moved: Walter Roberson
on 29 Oct 2025
Olá, trabalho com o Matlab desde 10 de outubro, ontem fiz atualização do mue mac pro M1 e o matlab ja não abre
Ted Rogers
on 28 Oct 2025
Moved: Walter Roberson
on 29 Oct 2025
the workspace window keeps going away. virtually everytime i run code. very very dissappointing. its like matlab decided that i don't believe it is important
Answers (2)
Flemming
on 2 Dec 2021
4 votes
This is not a mac issue, it is a 2021b issue. It has serious problems in all aspects. Should never have been released.
1 Comment
Walter Roberson
on 21 Dec 2021
I will pass on to Mathworks your recommendation that they recall R2012b.
Tanmay Das
on 13 Oct 2021
0 votes
Hi,
This is potentially due to the usage of window snapping/management tools such as Magnet. Please see the attached link for resolution/workaround. Workaround number 6 is suggested first as it is the easiest and seems to have a high level of success.
4 Comments
Doheon Lee
on 13 Oct 2021
Tanmay Das
on 14 Oct 2021
Edited: Tanmay Das
on 14 Oct 2021
Hi,
In workaround number 1, once you download and install OpenJDK 8 version of JRE using the given link, you will have a directory created in your PC specific to that Application consisting of all the installed files. That is your JRE root directory. You need to copy the contents inside Contents/Home to the above mentioned path inside MATLAB root directory.
Doheon Lee
on 14 Oct 2021
Margaret Daly
on 18 Jan 2023
I don't use any snap/managment tools and it's still unbeliavably slow...
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!