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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 330
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 286
GUI with Axes, Menu, and Toolbar
12-9
GUI with Axes, Menu, and Toolbar
The initial topics introduce the example and the techniques it illustrates:
“The Example” on page 12-9
“Techniques Used in the Example” on page 12-11
“View the Completed GUI M-Files” on page 12-11
The remaining topics describe the example in the sequence in which the main
M-file is organized:
1 “Creating the Data” on page 12-11
2 “Creating the GUI and Its Components” on page 12-12
3 “Initializing the GUI” on page 12-17
4 “Defining the Callbacks” on page 12-18
5 “Helper Function: Plotting the Plot Types” on page 12-21
The Example
This example creates a GUI that displays a user-selected plot in an axes. The
GUI contains the following components:
Axes
Pop-up menu with a list of five plots
Push button for updating the contents of the axes
Menu bar File menu with three items: Open, Print, and Close
Toolbar with two buttons that enable a user to open files and print the plot.
When you run the GUI, it initially displays a plot of five random numbers
generated by the MATLAB
rand(5) command, as shown in the following
figure.
Vista de página 286
1 2 ... 282 283 284 285 286 287 288 289 290 291 292 ... 329 330

Comentários a estes Manuais

Sem comentários