How do you open MATLAB Runtime on Mac?

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.

Antworten (1)

Walter Roberson
Walter Roberson am 20 Apr. 2022

0 Stimmen

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 Kommentar

R Rai
R Rai am 21 Apr. 2022
Bearbeitet: R Rai am 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"

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 20 Apr. 2022

Bearbeitet:

am 21 Apr. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by