Specifications

Getting Started Example
1-25
else
set(handles.print_submenu,'Enable','on')
end
The Print Item Callback
The callback for the Print menu item uses the print command to print the
current plot on the user’s default printer. The
-f option specifies the GUI
figure. Since the figure’s
Tag property is set to figure1, the figure’s handle is
contained in the
figure1 field of the handles structure.
function varargout = print_submenu_Callback(h, eventdata, handles, varargin)
print -f handles.figure1
The Close Item Callback
The callback for the Close menu item uses the delete command to close the
GUI figure. Since the figure’s
Tag property is set to figure1, the figure’s handle
is contained in the
figure1 field of the handles structure.
function varargout = close_submenu_Callback(h, eventdata, handles, varargin)
delete(handles.figure1)