infinite while loop in MATLAB code
8 次查看(过去 30 天)
显示 更早的评论
Can I run more than one infinite while loop in MATLAB code?
0 个评论
回答(1 个)
Sebastian Castro
2017-7-27
What stops you from putting the contents of multiple loops in a single while-loop?
Another option is to use MATLAB timers so you can schedule multiple sets of commands in one MATLAB session. This is a more advanced concept and likely needs a good justification; else, my first question stands.
- Sebastian
2 个评论
Sebastian Castro
2017-7-27
Ah, in the case of a GUI it is then pretty common to start timers that run stuff in the background.
Take, for instance, this related Answer: https://www.mathworks.com/matlabcentral/answers/297381-how-to-implement-a-timer-in-appdesigner
- Sebastian
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!