Creating Graphical User Interfaces Previous page   Next Page

GUI with Axes and Menu

The GUI with axes and menu template is shown in the following figure.

GUI with axes and menu template

When you run the GUI by clicking the Run icon on the toolbar, the GUI displays a plot of five random numbers generated by the MATLAB rand(5) command, as shown in the following figure.

plot of five random numbers

You can select other plots in the pop-up menu. Clicking the Update button displays the currently selected plot on the axes.

The GUI also has a File menu with three items:


Previous page  GUI with Uicontrols Modal Question Dialog Next page

© 1994-2005 The MathWorks, Inc.