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,

답변 (1개)

Geoff Hayes
Geoff Hayes 2018년 9월 4일
  댓글 수: 8
Mitchell Herndon
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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by