MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 46

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 500
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 45
2 How to Create a UI with GUIDE
2-22
Add this code to the Mesh push button callback, pushbutton2_Callback:
% Display mesh plot of the currently selected data.
mesh(handles.current_data);
Add this code to the Contour push button callback, pushbutton3_Callback:
% Display contour plot of the currently selected data.
contour(handles.current_data);
4
Save your code by selecting File > Save.
Open and Run the Simple GUIDE UI
In “Code the Behavior of the Simple GUIDE UI” on page 2-16, you programmed the
pop-up menu and the push buttons. You also created data for them to use and initialized
the display. Now you can run your program to see how it works.
1
Run your program from the Layout Editor by selecting Tools > Run.
2
In the pop-up menu, select Membrane, and then click the Mesh button. The UI
displays a mesh plot of the MathWorks
®
L-shaped Membrane logo.
Seitenansicht 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 499 500

Kommentare zu diesen Handbüchern

Keine Kommentare