MATLAB Function Reference    

Wait until a timer stops running



wait(obj) blocks the MATLAB command line and waits until the timer, represented by the timer object obj, stops running. When a timer stops running, the value of the timer object's Running property changes from 'on' to 'off'.

If obj is an array of timer objects, wait blocks the MATLAB command line until all the timers have stopped running.

If the timer is not running, wait returns immediately.

See Also

timer, start, stop

  voronoin waitbar