Quiver or vector plot
quiver(
plots arrows with directional components X,Y,U,V)U and V
at the Cartesian coordinates specified by X and
Y. For example, the first arrow originates from the point
X(1) and Y(1), extends horizontally according to
U(1), and extends vertically according to V(1). By
default, the quiver function scales the arrow lengths so that they do
not overlap.
quiver( plots
arrows with directional components specified by U,V)U and
V at equally spaced points.
If U and V are vectors, then the
x-coordinates of the arrows range from 1 to the number of
elements in U and V, and the
y-coordinates are all 1.
If U and V are matrices, then the
x-coordinates of the arrows range from 1 to the number of
columns in U and V, and the
y-coordinates of the arrows range from 1 to the number of
rows in U and V.
quiver(___, adjusts the
length of arrows:scale)
When scale is a positive number, the
quiver function automatically adjusts the lengths of arrows
so they do not overlap, then stretches them by a factor of
scale. For example, a scale of 2 doubles
the length of arrows, and a scale of 0.5 halves the length of
arrows.
When scale is 'off' or
0, such as quiver(X,Y,U,V,'off'), then
automatic scaling is disabled.
quiver(___,
fills the markers specified by LineSpec,'filled')LineSpec.
quiver(___, specifies
quiver properties using one or more name-value pair arguments. For a list of properties,
see Quiver Properties. Specify name-value pair
arguments after all other input arguments. Name-value pair arguments apply to all of the
arrows in the quiver plot.Name,Value)
q = quiver(___) returns a Quiver
object. This object is useful for controlling the properties of the quiver plot after
creating it.
To create a quiver plot using polar coordinates, first convert them to Cartesian
coordinates using the pol2cart function.