|MATLAB Function Reference|
Quiver or velocity plot
A quiver plot displays velocity vectors as arrows with components (
V) at the points (
For example, the first vector is defined by componets
V(1) and is displayed at the point
plots vectors as arrows at the coordinates specifide in each corresponding pair of elements in
Y. The matirces
V must all be the same size and contain corresponding position and velocity components.
Expanding X and Y Coordinates
Y, if they are not matrices. This expansion is equivalent to calling
meshgrid to generate matrices from vectors:
In this case, the following must be true:
X corresponds to the columns of
V, and vector
Y corresponds to the rows of
draws vectors specified by
V at equally spaced points in the x-y plane.
automatically scales the arrows to fit within the grid and then stretches them by the factor
2 doubles their relative length and
0.5 halves the length. Use
scale = 0 to plot the velocity vectors without the automatic scaling.
quiver(..., specifies line style, marker symbol, and color using any valid
quiver draws the markers at the origin of the vectors.
quiver(..., fills markers specified by
h = quiver(...)
returns a vector of line handles.
Plot the gradient field of the function.
Direction and Velocity Plots for related functions
Two-Dimensional Quiver Plots for more examples