3.72727

3.7 | 11 ratings Rate this file 20 downloads (last 30 days) File Size: 1.09 KB File ID: #4194

delay

by Axel Mart?nez M?ller

 

25 Nov 2003 (Updated 26 Nov 2003)

Code covered by BSD License  

Waits for the specified number of seconds.

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
04 Feb 2004 Juan Carlos Fuentes Michel

It works, but only on the R13.

Is there someone who's got something for the R12 version?

01 Sep 2004 Jakob Buron

It works, but the builtin 'pause(n)' function does the same.

01 Sep 2004 Aman Siddiqi

Works well. Thanks

29 Dec 2005 John D'Errico

How is this any improvement over pause(T)? Even better, pause works in any version of matlab, new or old.

05 Sep 2006 Nathan McDannold

Works great! It's nice to see a pause function that doesn't use 100% of my CPU!

18 Dec 2006 Ming Liu

It stops all the m files.

25 May 2007 Peter Mao

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."

12 Nov 2007 Kiran Bhagat

very useful..thanks a lot!

13 Dec 2007 Mukund Kumar

Nice one. Though it generates this unobtrusive error:

??? Error while evaluating TimerFcn for timer 'timer-5647'

Undefined command/function 'myWait'.

18 Apr 2008 abhi k

this was very much required.
a very very thank you.

27 May 2008 Balázs Vágány

:-) You helped me a lot!
THX!

19 Jun 2008 Sergey B

why not to use simple pause(t) ?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
wait Axel Mart?nez M?ller 22 Oct 2008 07:09:59
timer Axel Mart?nez M?ller 22 Oct 2008 07:09:59
delay Axel Mart?nez M?ller 22 Oct 2008 07:09:59
utilities Axel Mart?nez M?ller 22 Oct 2008 07:09:59
miscellaneous Axel Mart?nez M?ller 22 Oct 2008 07:09:59
delay AAA AAAA 31 May 2009 16:43:13
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com