How do you open MATLAB Runtime on Mac?

4 次查看(过去 30 天)
R Rai
R Rai 2022-4-20
编辑: R Rai 2022-4-21
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.

回答(1 个)

Walter Roberson
Walter Roberson 2022-4-20
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 个评论
R Rai
R Rai 2022-4-21
编辑:R Rai 2022-4-21
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"

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by