| Contents | Index |
| On this page… |
|---|
This section shows you how to use GUIDE to create the graphical user interface (GUI) shown in the following figure.

The GUI contains
An axes component
A pop-up menu listing three different data sets that correspond to MATLAB functions: peaks, membrane, and sinc
A static text component to label the pop-up menu
Three push buttons, each of which displays a different type of plot: surface, mesh, and contour
To use the GUI, select a data set from the pop-up menu, then click 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, starting with Lay Out the Simple GUI in GUIDE, guide you through the steps to create this GUI. We recommend that you create the GUI for yourself as the best way to learn how to use GUIDE.
If you are reading this in the MATLAB Help browser, you can click the following links to display this example in the GUIDE Layout Editor and the MATLAB Editor.
Note The following links execute MATLAB commands and are designed to work within the MATLAB Help browser. If you are reading this online or in PDF, go to the corresponding section in the MATLAB Help Browser to use the links. |
![]() | Introduction to GUIDE | Lay Out the Simple GUI in GUIDE | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |