How can I run a MATLAB function using Windows Command Prompt and providing input for the function?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I am trying to execute an .m file containing a function using the Windows command prompt. The function has 3 inputs, how can I execute the file while providing the data for the inputs using the command prompt?
Thank you,
댓글 수: 0
답변 (1개)
Geoff Hayes
2018년 9월 4일
댓글 수: 8
Mitchell Herndon
2019년 10월 24일
편집: Mitchell Herndon
2019년 10월 24일
How could you format the -r statement to include a try/catch?
Such as
matlab -r "try (code) catch ME (code) end"
참고 항목
카테고리
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!