
1 About GUIs in MATLAB
1-2
What Is a GUI?
A graphical user interface (GUI) is a graphical display that contains devices, or
components, that enable a user to perform interactive tasks. To perform these
tasks, the user of the GUI does not have to create a script or type commands at
the command line. Often the user does not have to know the details of the task
at hand.
The GUI components can be menus, toolbars, push buttons, radio buttons, list
boxes, and sliders - just to name a few. In MATLAB, a GUI can also display
data in tabular form or as plots, and can group related components.
The following figure illustrates a simple GUI.
The GUI contains
• An axes
• A pop-up menu listing three different data sets that correspond to MATLAB
functions: peaks, membrane, and sinc
• A static text to label the pop-up menu
• Three buttons that provide different kinds of plots: surface, mesh, and
contour
When you click a push button, the axes displays the selected data set using the
specified plot.
Commenti su questo manuale