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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

Saved successfully!

Ooh no, something went wrong!