User`s guide

5 GUIDE Preferences and Options
Option Description
Callback (GUI becomes Current
Figure within Callbacks)
The GUI can be accessed only
from within a GUI callback. The
GUI cannot be accessed from the
command line or from a script. This
is the default.
Off (GUI never becomes Current
Figure)
The GUI can not be accessed from
a callback, the command line, or a
script, without the handle.
On (GUI may become Current
Figure from Command Line)
The GUI can be accessed from a
callback, from the com mand line,
and from a script.
Other (Use settings from
Property Inspector)
You control accessibility by
setting the Ha ndle Visibility and
IntegerHandle properties from the
Property Inspector.
Generate FIG-File and MATLAB File
Select Generate FIG-file and MATLAB file in the GUI Options dialog
boxifyouwantGUIDEtocreateboththeFIG-fileandtheGUIcodefile(this
is the default). Once you have selected this option, you can select any of the
following items in the frame to configure GUI code:
“Generate Callback Function Prototypes” on page 5-12
“GUI Allows Only One Instance to Run (Singleton)” on page 5-13
“Use System Color Scheme for Background” on page 5-14
See “Files Generated by GU IDE ” on page 8-7 for information abo ut these files.
Generate Callback Function Prototypes
If you select Generate callback function prototypes in the GUI Options
dialog, G UIDE adds templates for the most commonly used callbacks to the
GUI code for most components you add to the GUI. You must then write
the code for these callbacks.
5-12