Have MATLAB code pause and then take input from command line
2 次查看(过去 30 天)
显示 更早的评论
I know 'pause' halts MATLAB code and waits for you to hit 'Enter' before continuing. How can I pause the code, and then have it take an input from the command line. For example, I want the code to run, and then pause before a for loop, and if I put in "1" then the for loop executes one bit of code or if I put in "2" the for loop executes a different bit of code. Thank you.
0 个评论
采纳的回答
dpb
2014-10-5
编辑:Image Analyst
2014-10-5
doc input % plain text
doc inputdlg % gui dialog box
help iofun
help uitools
for wider scope of choices overall...
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!