how to print and fetch input of matlab file from system's CMD? And how to run from command line?
1 回表示 (過去 30 日間)
古いコメントを表示
How to print matlab output on systems cmd and disable the matlab command window?
2 件のコメント
回答 (1 件)
Walter Roberson
2019 年 4 月 23 日
編集済み: Walter Roberson
2019 年 4 月 23 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!