
4 What Is GUIDE?
4-2
What Is GUIDE?
GUIDE, the MATLAB Graphical User Interface development environment,
provides a set of tools for creating graphical user interfaces (GUIs). These tools
simplify the process of laying out and programming GUIs.
Laying Out a GUI
Using the GUIDE Layout Editor, you can populate a GUI by clicking and
dragging GUI components — such as axes, panels, buttons, text fields, sliders,
and so on — into the layout area. You can also create menus and context menus
for the GUI. From the Layout Editor, you can size the GUI, modify component
look and feel, align components, set tab order, view a hierarchical list of the
component objects, and set GUI options.
Programming the GUI
GUIDE automatically generates an M-file that controls how the GUI operates.
This M-file provides code to initialize the GUI and contains a framework for the
GUI callbacks — the routines 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 them to.
Note MATLAB provides a selection of standard dialog boxes that you can
create with a single function call. For information about these dialog boxes
and the functions used to create them, see Predefined Dialog Boxes in the
MATLAB documentation.
Kommentare zu diesen Handbüchern