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.

waterfallExamplesProduce a waterfall plot of the peaks function.[X,Y,Z] = peaks(30);waterfall(X,Y,Z)1050−5−10420−2−4−3−2−10123AlgorithmSee AlsoThe range of X, Y, and Z, or the current setting of the axes Llim, YLim, and ZLimproperties, determines the range of the axes (also set by axis). The range of C,or the current setting of the axes Clim property, determines the color scaling(also set by caxis).The CData property for the patch graphics objects specifies the color at everypoint along the edge of the patch, which determines the color of the lines.The waterfall plot looks like a mesh surface; however, it is a patch graphicsobject. To create a surface plot similar to waterfall, use the meshz functionand set the MeshStyle property of the surface to 'Row'. For a discussion ofparametric surfaces and related color properties, see surf.axes, axis, caxis, meshz, surfProperties for patch graphics objects.2-587

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

Saved successfully!

Ooh no, something went wrong!