
3 Creating a GUI Programmatically
3-2
The Example: Simple GUI
This chapter shows you how to write a script that creates the example
graphical user interface (GUI) 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, each od which provides a different kind of plot: 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 push buttons. Clicking the button triggers the execution of
a callback that plots the selected data in the axes.
The next topic, “Function Summary” on page 3-4, summarizes the functions
used to create this example GUI.
axes
push buttons
static text
pop-up menu
Commenti su questo manuale