Specifications

3 Laying Out GUIs and Setting Properties
3-22
4 Save the exported M-file in the Save As dialog. By default, GUIDE gives the
exported M-file the name of the GUI M-file with
_export appended.
Note If you save a large data set in the GUI figure or in a uicontrol, GUIDE
might also export a MAT-file containing the data in addition to exporting an
M-file. For example, the data could be saved in a figure or uicontrol
UserData
property, or in a figure
Colormap property. The name of the MAT-file is the
same as the exported M-file except for the extension .mat.
Displaying the GUI
You can display the GUI figure using the openfig, open, or hgload command.
These commands load FIG-files into the MATLAB workspace. Note that the
displayed GUI is not active.
Generally, however, you launch your GUI by executing the M-file that GUIDE
generates. This M-file contains the commands to load the GUI and provides a
framework for the component callbacks. See “Configuring the GUI M-File” on
page 3-25 for more information.
Layout Editor Preferences
You can set preferences for the Layout Editor by selecting Preferences from
the
File menu.