User`s guide

NameaGUIandItsFiles
For more information about these files, see “Files Generated by GUIDE”
on page 8-7.
File and GUI Names
ThecodefileandtheFIG-filethatdefineyourGUImusthavethesamename.
This name is also the name of your GUI.
Forexample,ifyourfilesarenamed
mygui.fig and mygui.m,thenthe
name of the GUI is
mygui,andyoucanruntheGUIbytypingmygui at the
command line. This assumes that the code file and FIG-file are in the same
folderandthatthefolderisinyourpath.
Names are assigned when you save the GUI the first time. See “Ways to Save
a GUI” on page 7-4 for information about saving GUIs.
Rename GUIs and GUI Files
TorenameaGUI,renametheGUIFIG-fileusingSave As from the Layout
Editor File menu. When you do this, GUIDE renames both the FIG-file and
the GUI code file, updates any callback properties that contain the old name
to use the new name, and updates all instances of the file name in the body of
the code. See “Save a GUIDE GUI” on page 7-4 for more information on ways
to save GUIs from GUIDE.
Note Do not rename GUI files b y changing their names outside of GUIDE or
the GUI will fail to function properly.
7-3