Code covered by the BSD License  

Highlights from
PAUSE4

Be the first to rate this file! 1 Download (last 30 days) File Size: 1.72 KB File ID: #6834

PAUSE4

by Jiro Doke

 

31 Jan 2005 (Updated 07 Jan 2010)

Create true pause intervals while executing other lines of code.

| Watch this File

File Information
Description

PAUSE4 Run code while pausing for specified time.
    
PAUSE4(n) ... PAUSE4 should be used as a clause that wraps code that is intended to run during a specified interval. n is in seconds, and it can be fractional. PAUSE4 without any arguments completes the pause routine.
 
Example:
PAUSE4(2);
<code 1>
PAUSE4;
<code 2>
 
This will run <code 1> during "pause" period, and <code 2> will be executed 2 seconds after PAUSE4(2) command.
 
This is useful if you want to maintain a regular interval, but do not want intermediate code to disrupt the interval. If the execution of <code 1> is longer than the pause period, <code 2> will execute immediately after the clause.

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
30 Dec 2009

Add BSD license.

07 Jan 2010

Copyright update.

Tag Activity for this File
Tag Applied By Date/Time
pause Jiro Doke 22 Oct 2008 07:40:26
wait Jiro Doke 22 Oct 2008 07:40:26
time Jiro Doke 22 Oct 2008 07:40:26
miscellaneous Jiro Doke 22 Oct 2008 07:40:26
utilities Jiro Doke 22 Oct 2008 07:40:26

Contact us at files@mathworks.com