MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guía de usuario Pagina 62

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 759
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 61
2 How to Create a GUI with GUIDE
If the editor is not already open, GUIDE opens it to display the GUI
code file, and the cursor moves to the pop-menu callback, which already
contains this code:
% --- Executes on selection change in popupmenu1.
function popupmenu 1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO )
% eventdata reserved - to be defined in a future v ersion of MATLAB
% handles structure with handles and user data (see GUIDATA)
2 Add the following code to the popupmenu1_Ca llback after the comment
that begins
% handles...
This code first retrieves two p op-up menu properties:
String a cell array that contains the menu contents
Value the index into the m enu contents of the selected data s et
2-32
Vista de pagina 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 758 759

Comentarios a estos manuales

Sin comentarios