How to pause the code?
114 次查看(过去 30 天)
显示 更早的评论
We can use 'Pause'function to pause what's running(e.g in a for loop).If we want to continue,we can just press the keyboard.Then my question is whether there is a way or another similar function which we can set a flag to pause or to continue.
0 个评论
采纳的回答
更多回答(1 个)
Youssef Khmou
2013-3-3
hi Chan,
you can use the function " keyboard" :
doc keyboard;
When you insert the function in function/script , it stops until you type return .
3 个评论
Brian B
2013-3-3
True. I didn't read it carefully, and thought you wrote "... until you press return".
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!