User`s guide
4 What Is GUIDE?
GUIDE: Getting Started
In this section...
“GUI Layout” on page 4-2
“GUI Programming” on page 4-2
GUI Layout
GUIDE, the MATLAB graphical user interface development environment,
provides a se t of tools for creating graphical user interfaces (GUIs). These
tools simplify the process of laying out and programming GUIs.
Using the GUIDE Layout Editor, you can populate a GUI by clicking and
dragging GUI components—such as axes, panels, buttons, text fields, sliders ,
andsoon—intothelayoutarea. Youalsocancreatemenusandcontext
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.
GUI Programming
GUIDE automatically generates a program file containing M ATLAB functions
that controls how the GUI operates. This code file provides code to initialize
the G UI and contains a framework for the GUI callbacks—the routines that
execute when a user interacts with a GUI com ponent. Use the MATLAB
Editor to add code to the callbacks to perform the actions you want the GUI
to perform.
Note MATLAB software provides a selection of standard dialog boxes
that you can create with a single function call. For an example, see the
documentation for
msgbox, which also provides links to functions that create
specia lized predefine d di alog boxes.
4-2