Matlab system() shell is wrong

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

0 个投票

Please see the Algorithm section of unix() as the same algorithm is used for system()

2 个评论

So my MATLAB_SHELL variable was somehow set to something else?
Possibly. You could examine the "matlab" shell script to see what it sets up for you, and you could examine your startup.m

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by