How do you open MATLAB Runtime on Mac?

3 ビュー (過去 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 Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by