How can I run a MATLAB function using Windows Command Prompt and providing input for the function?
19 次查看(过去 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!