How to pause the code?
古いコメントを表示
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.
採用された回答
その他の回答 (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 件のコメント
Youssef Khmou
2013 年 3 月 3 日
both of them work,
Brian B
2013 年 3 月 3 日
True. I didn't read it carefully, and thought you wrote "... until you press return".
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!