applying unix commands in matlab
Ältere Kommentare anzeigen
I have been trying to apply unix commands in the MATLAB environment but it is not working. For example, if I enter this simple command to display the environment variable PATH, the following is the output:
[status, cmdout]=unix('echo $PATH')
status =
0
cmdout =
$PATH
When I apply this same command in cygwin, it gives me a long output pointing to the correct directory. What do I need to do to fix this?
3 Kommentare
Walter Roberson
am 14 Aug. 2013
What shell are you using?
[status, cmdout] = unix('printenv SHELL')
You might have to use
[status, cmdout] = unix('env | grep SHELL')
Also which operating system are you using?
artsci4
am 14 Aug. 2013
Daniel Shub
am 14 Aug. 2013
I don't have the documentation in front of me, but I am pretty sure the MATLAB UNIX command is not magically and does not give you access to UNIX from a Windows machine.
Akzeptierte Antwort
Weitere Antworten (1)
artsci4
am 16 Aug. 2013
0 Stimmen
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!