
The Example: Simple GUI
2-3
The Example: Simple GUI
This chapter shows you how to use GUIDE to create the example graphical
user interface (GUI) which is shown in the following figure.
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 push buttons that provide different kinds of plots: surface, mesh, and
contour
To use the GUI, the user selects a data set from the pop-up menu, then clicks
one of the plot-type buttons. Clicking the button triggers the execution of a
callback that plots the selected data in the axes.
Subsequent topics GUIDE you through the steps to create this GUI. We
recommend that you create the GUI for yourself, as this is the best way to learn
how to use GUIDE.
axes
push buttons
static text
pop-up menu
Commentaires sur ces manuels