Main Content
wait
Block command prompt until timer stops running
Syntax
Description
wait(
blocks the command prompt until timer
t
)t
stops running. If t
is an array of timer objects,
wait
blocks the MATLAB® command line until each timer in t
has stopped running.
To block the command line, the timer object must first start by using start
or startat
before calling the
wait
method. If the timer is not running, wait
returns to the command line immediately.
Examples
Input Arguments
Version History
Introduced before R2006a