User`s guide

3 How to Create a Simple GUI Programmatically
About the Simple Programmatic GUI Example
Simple Programmatic GUI Components
This section shows you how to write MATLAB code that creates the example
graphical user interface (GUI) shown in the following figure.
The GUI contains
An axes
A pop-up menu listing three data sets that correspond to MATLAB
functions:
peaks, membrane,andsinc
A static text component to label the pop-up menu
Three push buttons, each o f which provides a d ifferent 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.
3-2