how to print and fetch input of matlab file from system's CMD? And how to run from command line?

1 Ansicht (letzte 30 Tage)
How to print matlab output on systems cmd and disable the matlab command window?

Antworten (1)

Walter Roberson
Walter Roberson am 23 Apr. 2019
Bearbeitet: Walter Roberson am 23 Apr. 2019
matlab -nojvm -nodesktop -r 'try; YOURFUNCTIONNAMEHERE; catch ME; end; quit' < INPUTFILENAMEHERE > OUTPUTFILENAMEHERE
If you are using Mac or Linux with a derivative of the Bourne Shell but not the C Shell, then put
2>&1
at the end of that to redirect stderr.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by