MATLAB POLYSPACE RELEASE NOTES Manual do Utilizador Página 114

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 240
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 239 240

Comentários a estes Manuais

Sem comentários