Why does executing Unix commands from MATLAB cause errors on Mac OS?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!