User`s guide
2 How to Create a GUI with GUIDE
UsetheCompletedSimpleGUIDEGUI
Open and Run the GUI
In “Program the Simple GUIDE GUI” on page 2-28, you programmed the
pop-up menu and the push buttons. Y ou also created data for them to use and
initialized the display. Now you can run your GUI and see how it works.
1 Run your GUI by selecting Run from the Layout Editor Tools menu. If
the GUI is on your MATLAB path or in your current folder, you can also
runitbytypingitsname,
simple_gui, at the prompt. T he GUI looks like
this when it first displays:
Noti
ce that the G UI does not display a menu bar or toolbar, as figures
norm
ally do. By default, omits them because most G UIs do not support all
the
operations that the standard menu items and buttons provide. You
can
, however, turn on the standard figure toolbar and menu bar, or create
cus
tom ones using the GUIDE Menu Editor and Toolbar Editor, if you
ch
oose. In addition, by default, GUIs created by GUIDE lack controls to
do
ck them in the MATLAB desktop that normal figures pos sess. You can
2-36