MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Instrukcja Użytkownika Strona 46

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 500
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 499 500

Komentarze do niniejszej Instrukcji

Brak uwag