Specifications

Controlling Figure Window Behavior
4-39
the initialization section of the GUI M-file in the opening function with the set
command.
set(hObject,'WindowStyle','modal')
Dismissing a Modal Figure
A GUI using a modal figure must take one of the following actions in a callback
routine to release control:
Delete the figure.
delete(handles.figure1)
Make the figure invisible.
set(handles.figure1,'Visible','off')
Change the figure’s WindowStyle property to normal.
set(handles.figure1,'WindowStyle','normal')
The user can also type Ctrl+C in a modal figure to convert it to a normal
window.