How can I run a MATLAB function using Windows Command Prompt and providing input for the function?

4 visualizaciones (últimos 30 días)
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,

Respuestas (1)

Geoff Hayes
Geoff Hayes el 4 de Sept. de 2018
  8 comentarios
Mitchell Herndon
Mitchell Herndon el 24 de Oct. de 2019
Editada: Mitchell Herndon el 24 de Oct. de 2019
How could you format the -r statement to include a try/catch?
Such as
matlab -r "try (code) catch ME (code) end"

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by