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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 759
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 312
Add Code for Components in C allbacks
Axes
Axes components enable your GUI to display graphics, such as graphs and
images. This topic briefly tells you how to plot to axes components in your
GUI.
“Plotting to an Axes” on p age 8-45
“Creating Subplots” on page 8-47
Plotting to a n Axes
In most cases, you create a plot in an axes from a callback that belongs to
some other compo ne nt in the GUI. For example, pressing a button might
trigger the plotting of a graph to an axes. In this case, the button’s
Callback
callback contains the code that generates the plot.
The following example contains two axes and two buttons. Clicking one
button generates a plot in one axes and clicking the other button generates a
plot in the other axes. The following figure shows these components as they
might appear in the Layout Editor.
8-45
Vista de pagina 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 758 759

Comentarios a estos manuales

Sin comentarios