MATLAB POLYSPACE RELEASE NOTES Manuel d'utilisateur Page 114

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 240
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 113
3 Graphics
YoucanaddsubplotstoGUIsaswellastofigures.Fordetailsaboutcreating
subplots in a GU I D E-g enerated GUI, see “Creating Subplo ts ” in the MATLAB
Creating Graphical User Interfaces documentation.
Controlling the Axes
The axis command provides a number of options for setting the scaling,
orientation, and aspect ratio of graphs. You can also set these options
interactively. See “Editing Plots” on page 3-17 for more information.
Setting Axis Limits
By default, MATLAB finds the m axima and minima of the data and chooses
theaxislimitstospanthisrange. The
axis command enables you to specify
your own limits:
axis([xmin xmax ymin ymax])
or for three-dimensional graphs,
axis([xmin xmax ymin ymax zmin zmax])
Use the command
axis auto
to reenable MATLAB automatic limit selection.
Setting the Axis Aspect Ratio
The axis command also enables you to specify a number of predefined m odes.
For example,
axis square
makes the x-axis and y-axis the same length.
axis equal
makes the individual tick m ark increments on the x-axes and y-axe s the s ame
length. This means
plot(exp(i*[0:pi/10:2*pi]))
3-58
Vue de la page 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 239 240

Commentaires sur ces manuels

Pas de commentaire