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.

waterfallPurpose2waterfallWaterfall plotSyntaxwaterfall(Z)waterfall(X,Y,Z)waterfall(...,C)h = waterfall(...)DescriptionThe waterfall function draws a mesh similar to the meshz function, but it doesnot generate lines from the columns of the matrices. This produces a“waterfall” effect.waterfall(Z) creates a waterfall plot using x = 1:size(Z,1) andy = 1:size(Z,1). Z determines the color, so color is proportional to surfaceheight.waterfall(X,Y,Z) creates a waterfall plot using the values specified in X, Y,and Z. Z also determines the color, so color is proportional to the surface height.If X and Y are vectors, X corresponds to the columns of Z, and Y corresponds tothe rows, where length(x) = n, length(y) = m, and [m,n] = size(Z). X andY are vectors or matrices that define the x and y coordinates of the plot. Z is amatrix that defines the z coordinates of the plot (i.e., height above a plane). IfC is omitted, color is proportional to Z.waterfall(...,C) uses scaled color values to obtain colors from the currentcolormap. Color scaling is determined by the range of C, which must be thesame size as Z. <strong>MATLAB</strong> performs a linear transformation on C to obtain colorsfrom the current colormap.h = waterfall(...) returns the handle of the patch graphics object used todraw the plot.RemarksFor column-oriented data analysis, use waterfall(Z') orwaterfall(X',Y',Z').2-586

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

Saved successfully!

Ooh no, something went wrong!