12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

quiverPurpose2quiverQuiver or velocity plotSyntaxDescriptionquiver(U,V)quiver(X,Y,U,V)quiver(...,scale)quiver(...,LineSpec)quiver(...,LineSpec,'filled')h = quiver(...)A quiver plot displays vectors with components (u,v) at the points (x,y).quiver(U,V) draws vectors specified by U and V at the coordinates defined byx = 1:n and y = 1:m, where [m,n] = size(U) = size(V). This syntax plots Uand V over a geometrically rectangular grid. quiver automatically scales thevectors based on the distance between them to prevent them from overlapping.quiver(X,Y,U,V) draws vectors at each pair of elements in X and Y. If X and Yare vectors, length(X) = n and length(Y) = m, where[m,n] = size(U) = size(V). The vector X corresponds to the columns of U andV, and vector Y corresponds to the rows of U and V.quiver(...,scale) automatically scales the vectors to prevent them fromoverlapping, then multiplies them by scale. scale = 2 doubles their relativelength and scale = 0.5 halves them. Use scale = 0 to plot the velocity vectorswithout the automatic scaling.quiver(...,LineSpec) specifies line style, marker symbol, and color usingany valid LineSpec. quiver draws the markers at the origin of the vectors.quiver(...,LineSpec,'filled') fills markers specified by LineSpec.h = quiver(...) returns a vector of line handles.RemarksIf X and Y are vectors, this function behaves as[X,Y] = meshgrid(x,y)quiver(X,Y,U,V)2-380

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!