MATLAB has released the new native version of MATLAB R2023b, which can smoothly work on Apple Silicon. You can download from the below link:Prerelease Release HighlightsR2023b prerelease: Updates to MATLAB, Simulink, and more than 100 other products.Note: Remember to select the apply silicon version.The MATLAB.jl has also updated, you can add the package from Julia by
using Pkg; Pkg.add(”MATLAB”). Once the installation and precompile finished, you can use the MATLAB engine in Julia.
Because MATLAB are still running on
x86_64platform, MATLAB Engine for Python or Julia is invalid on Apple Silicon native platform. If you want to use MATLAB Engine, you can only install all the software on
The solution can be found from stackoverflow discuss.
open ~/.zshrcand add the following line to the end of the file.
browis the alias for
ibis the alias for
- Add an alias to switch between
- Install Julia via
Wait for the installation.
- Start Julia
ib juliaand install
- Test the availability.
The return value should be
Everytime when you run Julia rememeber to add
ib juliarather than
juliato start Julia if you want to use MATLAB Engine.
If you only need the Julia function, I suggest to run native version of Julia on Apple Silicon.