MATLAB POLYSPACE RELEASE NOTES Manual de usuario Pagina 114

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 239 240

Comentarios a estos manuales

Sin comentarios