Clear Filters
Clear Filters

Matlab system() shell is wrong

1 view (last 30 days)
Randall Lin
Randall Lin on 29 Jun 2011
Why does Matlab use /opt/local/bin/bash instead of /bin/bash for system()?
Can I change this permanently?

Answers (1)

Walter Roberson
Walter Roberson on 29 Jun 2011
Please see the Algorithm section of unix() as the same algorithm is used for system()
  2 Comments
Randall Lin
Randall Lin on 29 Jun 2011
So my MATLAB_SHELL variable was somehow set to something else?
Walter Roberson
Walter Roberson on 8 Jul 2011
Possibly. You could examine the "matlab" shell script to see what it sets up for you, and you could examine your startup.m

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!