MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 64

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 63
2 How to Create a GUI with GUIDE
1 Display the Surf push button callback in the MATLAB Editor. Right-click
the Surf push button in the Layout Editor to display a context menu. From
that menu, select View Callbacks > Callback.
In the editor, the cur sor moves to the Surf push button callback in the GUI
code file, which already contains this code:
% --- E
xecutes on button press in pushbutton1.
funct
ion pushbutton1_Callba ck(hObject, eventdata, handles)
% hObj
ect handle to pushbutton1 (see GCBO)
% eve
ntdata reserved - to be defined in a future version of MATLAB
% han
dles structure with handles and user data (see GUIDATA)
2 Add the following code to the callback immediately after the comment that
begins
% handles...
%Di
splay surf plot of the current ly selected data.
sur
f(handles.current_data);
2-34
Seitenansicht 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare