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

5 visualizzazioni (ultimi 30 giorni)
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,

Risposte (1)

Geoff Hayes
Geoff Hayes il 4 Set 2018
  8 Commenti
Mitchell Herndon
Mitchell Herndon il 24 Ott 2019
Modificato: Mitchell Herndon il 24 Ott 2019
How could you format the -r statement to include a try/catch?
Such as
matlab -r "try (code) catch ME (code) end"

Accedi per commentare.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by