Matlab system() shell is wrong

1 回表示 (過去 30 日間)
Randall Lin
Randall Lin 2011 年 6 月 29 日
Why does Matlab use /opt/local/bin/bash instead of /bin/bash for system()?
Can I change this permanently?

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 6 月 29 日
Please see the Algorithm section of unix() as the same algorithm is used for system()
  2 件のコメント
Randall Lin
Randall Lin 2011 年 6 月 29 日
So my MATLAB_SHELL variable was somehow set to something else?
Walter Roberson
Walter Roberson 2011 年 7 月 8 日
Possibly. You could examine the "matlab" shell script to see what it sets up for you, and you could examine your startup.m

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by