Is MATLAB supported on Apple Silicon Macs?

5,140 views (last 30 days)
Macs with an Apple silicon processor such as the Apple M1 have two ways to run applications. Applications built for Apple silicon run natively, while apps built for Intel processors run in the Rosetta 2 environment. Which method does MATLAB support? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Jun 2022
Edited: MathWorks Support Team on 4 Apr 2022
Rosetta 2 
MATLAB R2020b Update 3 and later are supported on Apple silicon Macs through the Rosetta 2 translation environment. Earlier releases of MATLAB may run but are not fully supported. 
There are two products which are available on Intel-based Macs but are not compatible with the Rosetta 2 environment: Polyspace and Simulink Desktop Real-Time. 
Native Apple Silicon 
A beta version of MATLAB R2022a running natively on Apple silicon is available here.
  77 Comments
Giorgio Taricco
Giorgio Taricco on 2 Jul 2022
I noticed that there is some confusion about the performance of M1 based Apple computers and I decided to run my own comparisons on the machines I can use. In order to simplify the comparisons, I extracted the LU factorization benchmark from the standard Matlab benchmark as the following code:
rng(1); a=randn(5200); tic; lu(a); toc
Then, I ran this code on different machines 50 times and I collected the best results:
  • MacBook Pro (14" 2021 M1 Pro) Matlab R2022 U3 0.78 s
  • MacBook Pro (16" 2021 M1 Max) Matlab R2022 U3 0.57 s
  • iMac Pro (3.2 GHz 8-Core Intel Xeon W) Matlab R2022 U3 0.25 s
  • Mac Studio (most powerful 2022 M1 Ultra) Matlab R2022 U3 0.37 s
  • Mac Studio (most powerful 2022 M1 Ultra) Matlab R2022 beta 0.47 s
In view of these results, I have the following disappointing comments.
  1. The best performance is achieved by the oldest 2017 Intel iMac Pro.
  2. The M1-optimized beta performance is worse than the Rosetta 2 performance on the best Mac Studio.
  3. The best performance with the expensive M1 Mac Studio is worse (.37 vs .27) than with the 2017 iMac Pro.
I think Apple should take in serious account all these points because many users might be tempted to avoid buying these new M1 based machines and continue using old powerhouses like the Xeon based iMac Pro.

Sign in to comment.

More Answers (34)

BH
BH on 18 Nov 2020
I installed 2020b on my M1 MBP today. Just thought I’d post here to let you know it runs even if it’s not officially supported
  21 Comments
Walter Roberson
Walter Roberson on 13 Dec 2021
We've danced this dance before. Polyspace is always at least 3 releases behind on technical enhancements.

Sign in to comment.


Moritz Kb
Moritz Kb on 12 Dec 2020
It works fine on the new MBA although battery consumption is huge, meaning 3hrs from 100% to 0%.
Hopefully this will improve when it’s running natively... Also 2D and 3D times in ‘bench’ are very Slow probably because they don’t run on the GPU cores?
  13 Comments
Wenqiang CHEN
Wenqiang CHEN on 24 Dec 2021
It's been more than a year, Do we have any progress? When the native apple silicon version will be avaliable?

Sign in to comment.


Stanislas Grare
Stanislas Grare on 23 Sep 2021
Matlab 2021b on macbook m1 Air 256/16

Saurabh Vyas
Saurabh Vyas on 24 Nov 2020
Edited: Saurabh Vyas on 24 Nov 2020
I feel MATLAB Online is the way to go till we get the version built to run on Apple silicon. It's got almost everything students require and can be run on safari/chrome without an install. It also has Simulink support!!
  4 Comments
Walter Roberson
Walter Roberson on 30 Nov 2020
MATLAB Online is not intended as a heavy duty computing facility. It might perhaps be closer to Tuk Tuk than Jaguar. But in some cases, Tuk Tuk can be very useful to have around.

Sign in to comment.


Ongun Palaoglu
Ongun Palaoglu on 1 Feb 2021
I am using mac mini m1, it was very good. right now it is very slow, clicking on function takes a delay. i dont understand why
  2 Comments
Shubam Tandel
Shubam Tandel on 31 Oct 2021
it just stops when i try to run any code, and always have to restart matlab.

Sign in to comment.


Jan van der Horst
Jan van der Horst on 27 Oct 2021
Anyone able to benchmark the new macbook M1 Pro\Max yet?
  8 Comments
Matheus
Matheus on 11 Apr 2022
@Noel Bartlow this is my M1 Max on the native build.

Sign in to comment.


milad karimshoushtari
milad karimshoushtari on 1 Nov 2021
Matlab 2021b benchmarks; Left side MacBook Pro 16 inch 2019 6-core i7, and right side MacBook Pro with M1 pro 8 core.
The performance in very similar on both machines. I tried running a lot of scripts and simulink models but the performance difference was negligible.
In my opinion, matlab performance has not been improved much over the last couple of years and a natively and "Fully" supported version of matlab for apple silicon is very much necessery. And by "Fully" I mean gpu support and many toolboxes that could be supported for macos but they are only available for windows.
  10 Comments
Walter Roberson
Walter Roberson on 13 Dec 2021
One of the GPU developers, Josh:
"MathWorks regularly reviews its policies on GPU support. Where there is a market, a robust, stable, performance portable language and runtime, and an extensive, supported, multi-platform ecosystem of tools, there is a good incentive to expand. We will be watching all these factors as use of the Apple M1 evolves."
I would comment that as yet the Apple system is not portable, multi-platform, or well-supported, and that as it has only just got its second version of the chips, it is too new to be considered stable.

Sign in to comment.


Enrico Onofri
Enrico Onofri on 23 May 2022
I did some more benchmarking on my new Mac M1 with R2022a-beta, this time a rather heavy calculation: Mercury's perihelion drift under the influence of all other planets. This makes heavy usage of ode113. I find that M1 with the beta version of Matlab outperforms a MacBook Pro with i7 at 2.8 GHz by a factor 2 in speed. This fact agrees with the builtin bench program where "ode" sohow a very good score.
Enrico

Annie Leonhart
Annie Leonhart on 8 Dec 2020
All you need to do to make it work is go to "show package content" Matlab/xxxx/bin/maci64/matlabwindow.app that's pretty much it. Click that and it'll run. Nothing special you need to do. Create an alias on your dock.
Been using 2020b for weeks with 0 issues. Runs just as good as it does on PC. Fully functional.
  2 Comments
Konstantin Yem
Konstantin Yem on 12 Mar 2021
I did the same steps, the matlab window appears and then closes down with that message bellow.
Could you please help what this might be ?
Last login: Fri Mar 12 20:22:04 on ttys000
@-MacBook-Pro ~ % /Applications/MATLAB_R2020b.app/bin/maci64/MATLABWindow.app/Contents/MacOS/MATLABWindow ; exit;
Cannot locate or initialize class com/mathworks/jmi/OpaqueJavaInterface.
java.lang.NoClassDefFoundError: com/mathworks/jmi/OpaqueJavaInterface
Caused by: java.lang.ClassNotFoundException: com.mathworks.jmi.OpaqueJavaInterface
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]

Sign in to comment.


Kumar Yashasvi
Kumar Yashasvi on 16 Dec 2020
yes, the newer version of matlab will surely support

FP Am
FP Am on 17 Feb 2021