MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Dokumentacja Strona 45

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 216
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 44
Programming the GUI
2-23
Add the code after the comments following the function definition, as shown
below:
Surf push button callback:
% --- Executes on button press in surf_pushbutton.
function surf_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to surf_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Display surf plot of the currently selected data
surf(handles.current_data);
You can add similar code to the Mesh and Contour push button callbacks after
the autogenerated code.
Add this code to the
Mesh push button callback:
% Display mesh plot of the currently selected data
mesh(handles.current_data);
Add this code
Autogenerated code
Przeglądanie stron 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 215 216

Komentarze do niniejszej Instrukcji

Brak uwag