Skip to content

uiwait

gui · scripts/gui/uiwait.m

: uiwait ()
: uiwait (fig)
: uiwait (fig, timeout)

Block the program until uiresume is called for the figure fig, the figure is closed, or timeout seconds have passed.

Without argument the current figure is used. timeout is a nonnegative real number of seconds and may be fractional; without it the wait has no time limit.