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.

contourfPurpose2contourfFilled two-dimensional contour plotSyntaxDescriptioncontourf(Z)contourf(Z,n)contourf(Z,v)contourf(X,Y,Z)contourf(X,Y,Z,n)contourf(X,Y,Z,v)[C,h,CF] = contourf(...)A filled contour plot displays isolines calculated from matrix Z and fills theareas between the isolines using constant colors. The color of the filled areasdepends on the current figure’s colormap.contourf(Z) draws a contour plot of matrix Z, where Z is interpreted asheights with respect to a plane. Z must be at least a 2-by-2 matrix. The numberof contour lines and the values of the contour lines are chosen automatically.contourf(Z,n) draws a contour plot of matrix Z with n contour levels.contourf(Z,v) draws a contour plot of matrix Z with contour levels at thevalues specified in vector v.contourf(X,Y,Z), contourf(X,Y,Z,n), and contourf(X,Y,Z,v) producecontour plots of Z using X and Y to determine the x- and y-axis limits. When Xand Y are matrices, they must be the same size as Z, in which case they specifya surface as surf does.[C,h,CF] = contourf(...) returns the contour matrix C as calculated by thefunction contourc and used by clabel, a vector of handles h to patch graphicsobjects, and a contour matrix CF for the filled areas.RemarksIf X or Y is irregularly spaced, contourf calculates contours using a regularlyspaced contour grid, then transforms the data to X or Y.2-108

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

Saved successfully!

Ooh no, something went wrong!