Code covered by the BSD License
Axel Martinez Möller
25 Nov 2003
26 Nov 2003)
Waits for the specified number of seconds.
Watch this File
Simple code that waits for the specified number of seconds. To use it, call "myWait(DeltaT)" with DeltaT in [s]. It does so using MATLAB timers, in this way it doesn't take computer resources (CPU), allowing other programs to run simultaneously.
great job , thanks
Can it wait for a shorter time that pause? In other words, pause can only wait a minumum of 0.01s. Can this one wait for a shorter time?
why not to use simple pause(t) ?
:-) You helped me a lot!
this was very much required.
a very very thank you.
Nice one. Though it generates this unobtrusive error:
??? Error while evaluating TimerFcn for timer 'timer-5647'
Undefined command/function 'myWait'.
very useful..thanks a lot!
I find it useful mainly because I can never remember the name of the function "PAUSE" and I'm always trying "wait," "delay," and "sleep."
actually, I've found that I come back here whenever I forget about "pause."
It stops all the m files.
Works great! It's nice to see a pause function that doesn't use 100% of my CPU!
How is this any improvement over pause(T)? Even better, pause works in any version of matlab, new or old.
Works well. Thanks
It works, but the builtin 'pause(n)' function does the same.
It works, but only on the R13.
Is there someone who's got something for the R12 version?