Why does executing Unix commands from MATLAB cause errors on Mac OS?
Show older comments
I am using MacOS. From the MATLAB command window, if I execute the following command
system('ls')
I get the error
/bin/bash: ls: command not found
But the command "ls" works properly from the Mac terminal. Similarly none of the typical OS commands like
system( ‘who’ ), system( ‘which’ )
work from the MATLAB Command Window but they work from the terminal. Why can't I call Unix commands from MATLAB on Mac OS?
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!