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!