How to fire the run button automatically for an .m file after a interval of time?
古いコメントを表示
Hello All, I want to run a Matlab(.m file in this respect) file infinitely until I press anything(any key or something, I think cntrl + C may do the work) and that should continue after every interval of time.
Thanks :)
3 件のコメント
Walter Roberson
2017 年 10 月 13 日
Is the idea that when you press the key, the running should pause, and then restart a fixed amount of time later?
If so, then what kinds of things do you need to be able to do when it is paused? Do you need to be able to access the variables? Or is it just something like you want to give a moment to freeze a graph so that you can read it clearly ?
Jayanta Deb
2017 年 10 月 13 日
Walter Roberson
2017 年 10 月 13 日
control-C already stops the function from running (though if it is doing heavy arithmetic or heavy computation in the symbolic toolbox then it might take time.)
回答 (1 件)
KL
2017 年 10 月 13 日
1 投票
How about using a timer?
カテゴリ
ヘルプ センター および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!