Code covered by the BSD License  

Highlights from
delay

3.75

3.8 | 12 ratings Rate this file 21 Downloads (last 30 days) File Size: 1.09 KB File ID: #4194

delay

by

 

25 Nov 2003 (Updated )

Waits for the specified number of seconds.

| 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   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
11 Sep 2011 Sepideh

great job , thanks

21 May 2010 Michael Purdy

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?

19 Jun 2008 Sergey B

why not to use simple pause(t) ?

27 May 2008 Balázs Vágány

:-) You helped me a lot!
THX!

18 Apr 2008 abhi k

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

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

12 Nov 2007 Kiran Bhagat

very useful..thanks a lot!

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

18 Dec 2006 Ming Liu

It stops all the m files.

05 Sep 2006 Nathan McDannold

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

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.

01 Sep 2004 Aman Siddiqi

Works well. Thanks

01 Sep 2004 Jakob Buron

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

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?

Contact us