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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 500
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 44
Create a Simple UI Using GUIDE
2-21
In the Editor, the cursor moves to the Surf push button callback in the UI code file,
which 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.
Przeglądanie stron 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 499 500

Komentarze do niniejszej Instrukcji

Brak uwag