The Wayback Machine - https://web.archive.org/web/20110930121231/http://www.mathworks.com:80/help/techdoc/creating_guis/f15-998352.html
Skip to Main Content Skip to Search
Product Documentation

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 envision what the user sees and what actions the user takes.

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.

Rough sketch of a proposed GUI

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, membrane, and sinc, which correspond to MATLAB functions and generate data to plot. You can select the data to plot from this menu.

Many Web sites and commercial publications such as the following provide guidelines for designing GUIs:

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A; sessions led by MATLAB experts.

 © 1984-2011- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS