User`s guide

2 How to Create a GUI with GUIDE
4 Browse to any folder for which you have write privileges, and then enter
the filename
simple_gui for the FIG-file. GUIDE saves both the FIG-file
and the code file using this name.
5 IfthefolderinwhichyousavetheGUIisnotontheMATLABpath,
GUIDE opens a dialog box, giving you the option of changing the current
folder to the folder containing the GUI files, or adding that folder to the
top or bottom of the MA TLAB path.
6 GUIDE saves the files simple_gu i.fi g and simple _gui.m and a ctivates
the GUI. It also opens the GUI code file in your default editor.
The GUI opens in a new window. Notice that the GUI lacks the standard
menu bar and toolbar that MATLAB figure windows display. You can add
your own menus and toolbar buttons with GUIDE, but by default a GUIDE
GUI includes none of these components.
When you operate
simple_gui, you can select a data set in the pop-up
menu and click the push buttons, but nothing happens. This is because
thecodefilecontainsnostatementstoservicethepop-upmenuandthe
buttons. The next topic, “Program the Simple GUIDE GUI” on page 2-28,
shows you how to program the GUI to make its controls o pe rate .
2-26