How do you open MATLAB Runtime on Mac?

4 views (last 30 days)
R Rai
R Rai on 20 Apr 2022
Edited: R Rai on 21 Apr 2022
It seems like you have to enter bash commands to achieve this, but I don't know what to enter. Everything I try results in a 'file not found' sort of messsage being returned. I have been trying to figure out how to open it and somehow have not found any success. I am unsure of what to input into bash in order to get the program to open. Please let me know when you get a chance. Thanks a lot.

Answers (1)

Walter Roberson
Walter Roberson on 20 Apr 2022
When you say "MATLAB Runtime" do you mean MCR, MATLAB Component Runtime? If so then that is not intended as a stand-alone application.
If you mean that you have installed MATLAB itself and you want to invoke it from terminal, then for example
alias matlab="/Applications/MATLAB_R2022a.app/bin/matlab -nojvm -nodesktop"
I put the above in my ~/.bash_profile
  1 Comment
R Rai
R Rai on 21 Apr 2022
Edited: R Rai on 21 Apr 2022
Hello Walter,
Thank you very much for your reply. Yes, I'm trying to run a particular program through MATLAB Component Runtime. It seems to be the solution you use when you are trying to run a program designed for MATLAB without actually having the MATLAB software. Do you by chance know how to use MCR for this purpose?
Could it be that I did not correctly append the string of code that they provide to the DYLD_LIBRARY_PATH environment variable? I used
export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}:}/Applications/MATLAB/MATLAB_Runtime/v94/runtime/maci64:/Applications/MATLAB/MATLAB_Runtime/v94/sys/os/maci64:/Applications/MATLAB/MATLAB_Runtime/v94/bin/maci64:/Applications/MATLAB/MATLAB_Runtime/v94/extern/bin/maci64"

Sign in to comment.

Categories

Find more on Entering Commands in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!