MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 313

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 758 759

Commentaires sur ces manuels

Pas de commentaire