User`s guide
11 Lay Out a Programmatic GUI
Design a Programmatic GUI
Before creating the actual GUI, it is important to decide what it is you want
your GUI to do and how you want it to work. It is helpful to draw your GUI on
paper and en vis ion what the user sees and w hat actions the user takes.
Note MATLAB software provides a selection of standard dialog boxes
that you can create with a single function call. For an example, see the
documentation for
msgbox, which also provides links to functions that create
specia lized predefine d di alog boxes.
The GUI used in this example contains an axes component that displays
either a surface, mesh, or contour plot of data selected from the pop-up menu.
The following picture shows a sketch that you might use as a starting point
for the design.
A panel contains three push buttons that enable you to choose the type of plot
you want. The pop-up menu contains three strings—
peaks, me mbra ne,and
sinc, w hich correspond to MATLA B functions and generate data to plot. You
can select the data to plot from this menu.
11-2