uiwait
Pauses the execution of code until the given handle, handle, is deleted, and the timeout, waittime, is reached.
Syntax
uiwait(handle)
uiwait(handle, waittime)
Inputs
- handle
- Handle of the given figure
- waittime (optional)
- Specifies the wait time (in seconds) that the code execution will be paused for before checking if the handle is deleted. The default value is 1 second and in this case, the handle is checked every second until the program execution is resumed.
Examples
handle=figure('Name', 'Grid Identification','NumberTitle', 'off','position', [500 100 800 700]);
uiwait(handle);
handle=figure('Name', 'Grid Identification','NumberTitle', 'off','position', [500 100 800 700]);
uiwait(handle, 2);