infinite while loop in MATLAB code
Show older comments
Can I run more than one infinite while loop in MATLAB code?
Answers (1)
Sebastian Castro
on 27 Jul 2017
0 votes
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 Comments
Sairah
on 27 Jul 2017
Sebastian Castro
on 27 Jul 2017
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
Categories
Find more on 루프와 조건문 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!