User`s guide

GUI Options
limited editing capability and may be useful for GUIs generated in MATLAB
Versions 5.3 and earlier. See the
guide function for more information.
GUIDE selects Generate FIG-file only as the default if you do one of the
following:
Start GUIDE from the command line by providing one or more figure
handles as arguments.
guide(fh)
In this case, GUIDE s elects Generate FIG-file only,evenwhenacode
file with a corresponding name exists in the same folder.
Start GUIDE from the command line and provide the name of a FIG-file for
which no code file with the same name exists in the sam e folder.
guide('myfig.fig')
Use the GUIDE Open Existing GUI tab to open a FIG-file for which no
code file with the same name exists i n the same folder.
When you save the figure or GUI with Generate FIG-file only selected,
GUIDE saves only the FIG-file. You must update any corresponding code
files yourself, as appropriate.
If you want GUIDE to manage the GUI code file for you, change the selection
to Generate FIG-file and MATLA B file before saving the GUI. If there
is no corresponding code file in the same location, GUIDE creates one. If a
codefilewiththesamenameastheoriginalfigureorGUIexistsinthesame
folder, GUIDE overwrites it. To prevent overwriting an existing file, save the
GUI using Save As from the File menu. Select another filename for the two
files. GUIDE updates variable names in the new code file as appropriate.
Callbacks for GUIs without Code
EvenwhenthereisnocodefileassociatedwithaGUIFIG-file,youcan
still provide callbacks for GUI components to make them perform actions
when used. In the Property Inspector, you can type callbacks in the form of
strings, built-in functions, or MATLAB code file names; when the GUI runs,
it will execute them if possible. If the callback is a file name, it can include
5-15