MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificaciones Pagina 45

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 216
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 215 216

Comentarios a estos manuales

Sin comentarios