MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelská příručka Strana 116

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 759
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 115
6 Lay Out a GUIDE GUI
Design a 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, membran e,and
sinc, which correspond to MATLAB functions. You can select the data to
plot from this menu.
Many Web sites and commercial publications s uch as the follow ing provi de
guidel ines for design ing GUIs:
6-2
Zobrazit stránku 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 758 759

Komentáře k této Příručce

Žádné komentáře