How can I run a MATLAB function using Windows Command Prompt and providing input for the function?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Geoff Hayes
am 4 Sep. 2018
8 Kommentare
Mitchell Herndon
am 24 Okt. 2019
Bearbeitet: Mitchell Herndon
am 24 Okt. 2019
How could you format the -r statement to include a try/catch?
Such as
matlab -r "try (code) catch ME (code) end"
Walter Roberson
am 25 Okt. 2019
matlab -r "try (code); catch ME; (code); end"
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!