Graphics Previous page   Next Page

Direction and Velocity Vector Graphs

Several MATLAB functions display data consisting of direction vectors and velocity vectors. This section describes these functions.

Function
Description
compass

Displays vectors emanating from the origin of a polar plot

feather

Displays vectors extending from equally spaced points along a horizontal line

quiver

Displays 2-D vectors specified by (u,v) components

quiver3

Displays 3-D vectors specified by (u,v,w) components

You can define the vectors using one or two arguments. The arguments specify the x and y components of the vectors relative to the origin.

If you specify two arguments, the first specifies the x components of the vectors and the second the y components of the vectors. If you specify one argument, the functions treat the elements as complex numbers. The real parts are the x components and the imaginary parts are the y components.


Previous page  Stairstep Plots Compass Plots Next page

© 1994-2005 The MathWorks, Inc.