Is there any examples that uses Wait.m?

1 Ansicht (letzte 30 Tage)
Michael Adelman
Michael Adelman am 13 Jul. 2012
Hi,
I have two endless loops (while) that need to draw plots. each loop has a condition to switch from one to other.
I get a lot of errors that the execution of the content of the loop unable to keep up with the frequency of the loop itself.
I was thinking to use Wait.m to slow down a bit the loop.
Is there any examples to understand properly how to use Wait.m?

Akzeptierte Antwort

Albert Yam
Albert Yam am 13 Jul. 2012
I'm not sure what you mean by "content of the loop unable to keep up with the frequency of the loop itself". However, you mentioned drawing plots in the loop, perhaps try:
or if you want a delay type slow down,

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by