MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Bedienungsanleitung Seite 44

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 330
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 43
2 Creating a GUI with GUIDE
2-24
The GUI M-file opens in the editor if it is not already open, and the cursor
moves to the
Surf push button callback which already contains this code:
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
2 Add the following code to the callback immediately after the comment that
begins
% handles...
% Display surf plot of the currently selected data.
surf(handles.current_data);
3 Repeat steps 1 and 2 to add similar code to the Mesh and Contour push
button callbacks.
- 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:
Seitenansicht 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 329 330

Kommentare zu diesen Handbüchern

Keine Kommentare