Why do the LS and ! (bang) commands not work in MATLAB 7.7 (R2008b) when the $MATLAB_SHELL environment variable is set?

조회 수: 3 (최근 30일)
I have the environment variable $MATLAB_ROOT set to 'bash', and when I try to run the LS command in MATLAB I get the following error message.
??? Error using ==> ls at 38
Similarly, shelling out commands with the bang operator (!) do not work.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
If you would like to set the $MATLAB_SHELL then it must be set with an absolute path. For instance if, outside of MATLAB, you get the following result:
> which bash
/bin/bash
Then $MATLAB_SHELL should be set to /bin/bash, not simply bash.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

제품


릴리스

R2008b

Community Treasure Hunt

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

Start Hunting!

Translated by