MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)

12.07.2015 Views

quiver3Purpose2quiver3Three-dimensional velocity plotSyntaxDescriptionquiver3(Z,U,V,W)quiver3(X,Y,Z,U,V,W)quiver3(...,scale)quiver3(...,LineSpec)quiver3(...,LineSpec,'filled')h = quiver3(...)A three-dimensional quiver plot displays vectors with components (u,v,w) atthe points (x,y,z).quiver3(Z,U,V,W) plots the vectors at the equally spaced surface pointsspecified by matrix Z. quiver3 automatically scales the vectors based on thedistance between them to prevent them from overlapping.quiver3(X,Y,Z,U,V,W) plots vectors with components (u,v,w) at the points(x,y,z). The matrices X, Y, Z, U, V, W must all be the same size and contain thecorresponding position and vector components.quiver3(...,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 vectors withoutthe automatic scaling.quiver3(...,LineSpec) specify line type and color using any valid LineSpec.quiver3(...,LineSpec,'filled') fills markers specified by LineSpec.h = quiver3(...) returns a vector of line handles.2-382

quiver3Examples Plot the surface normals of the function z = xe( – x2 – y 2 ).[X,Y] = meshgrid(–2:0.25:2,–1:0.2:1);Z = X.* exp(–X.^2 – Y.^2);[U,V,W] = surfnorm(X,Y,Z);quiver3(X,Y,Z,U,V,W,0.5);hold onsurf(X,Y,Z);colormap hsvview(-35,45)axis ([-2 2 -1 1 -.6 .6])hold off0.60.40.20−0.2−0.410.5201−0.5−1−2−10See Alsoaxis, contour, LineSpec, plot, plot3, quiver, surfnorm, view2-383

quiver3Purpose2quiver3Three-dimensional velocity plotSyntaxDescriptionquiver3(Z,U,V,W)quiver3(X,Y,Z,U,V,W)quiver3(...,scale)quiver3(...,LineSpec)quiver3(...,LineSpec,'filled')h = quiver3(...)A three-dimensional quiver plot displays vectors with components (u,v,w) atthe points (x,y,z).quiver3(Z,U,V,W) plots the vectors at the equally spaced surface pointsspecified by matrix Z. quiver3 automatically scales the vectors based on thedistance between them to prevent them from overlapping.quiver3(X,Y,Z,U,V,W) plots vectors with components (u,v,w) at the points(x,y,z). The matrices X, Y, Z, U, V, W must all be the same size and contain thecorresponding position and vector components.quiver3(...,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 vectors withoutthe automatic scaling.quiver3(...,LineSpec) specify line type and color using any valid LineSpec.quiver3(...,LineSpec,'filled') fills markers specified by LineSpec.h = quiver3(...) returns a vector of line handles.2-382

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

Saved successfully!

Ooh no, something went wrong!