Why does executing Unix commands from MATLAB cause errors on Mac OS?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!