MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 45

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 216
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 215 216

Komentáře k této Příručce

Žádné komentáře