MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual do Utilizador Página 64

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 500
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 63
3 A Simple Programmatic UI
3-12
end
function meshbutton_Callback(source,eventdata)
% Display mesh plot of the currently selected data.
mesh(current_data);
end
function contourbutton_Callback(source,eventdata)
% Display contour plot of the currently selected data.
contour(current_data);
end
end
2
Run your code by typing simple_gui2 at the command line. The initialization code
causes it to display the default peaks data with the surf function, making the UI
look like this.
3
In the pop-up menu, select Membrane, and then click the Mesh button. The UI
displays a mesh plot of the MathWorks L-shaped Membrane logo.
4
Try other combinations before closing the UI.
5
Type help simple_gui2 at the command line. MATLAB software displays the help
text.
Vista de página 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 499 500

Comentários a estes Manuais

Sem comentários