
6 Creating Graphical User Interfaces
What Is GUIDE?
GUIDE, the M ATLAB graphical user interface development environment,
provides a set of tools for creating graphical user inte rfaces (GUIs). These
tools greatly simplify the process of designing and building GUIs. You can
use the GUIDE tools to
• Lay out the GUI.
Using the GUIDE Layout Editor, you can lay out a G UI easily by clicking
and dragging GU I components—s u ch as panel s, bu tton s, t ext fie lds, sliders,
menus, and so on—into the layout area. GUIDE stores the GUI layout
in a FIG-file.
• Program the GUI.
GUIDE automatically generates an M-file that controls how the GUI
operates. The M -file initializes the GUI and contains a framework for the
most commonly used callbacks for each component—the commands that
execute when a user clicks a GUI component. Using the M-file editor, you
can add code to the callbacks to perform the functions you want.
Note You can also create GUIs programmatically. For information on how to
get started, see “Creating a Simple GUI Programmatically” in the MATLAB
Creating Graphical User interfaces documentation.
6-2
Commentaires sur ces manuels