23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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.

2contourc<br />

Purpose Low-level contour plot computation<br />

Syntax C = contourc(Z)<br />

C = contourc(Z,n)<br />

C = contourc(Z,v)<br />

C = contourc(x,y,Z)<br />

C = contourc(x,y,Z,n)<br />

C = contourc(x,y,Z,v)<br />

Description contourc calculates the contour matrix C used by contour, contour3, and<br />

contourf. The values in Z determine the heights of the contour lines with<br />

respect to a plane. The contour calculations use a regularly spaced grid<br />

determined by the dimensions of Z.<br />

contourc<br />

C = contourc(Z) computes the contour matrix from data in matrix Z, where Z<br />

must be at least a 2-by-2 matrix. The contours are isolines in the units of Z. The<br />

number of contour lines and the corresponding values of the contour lines are<br />

chosen automatically.<br />

C = contourc(Z,n) computes contours of matrix Z with n contour levels.<br />

C = contourc(Z,v) computes contours of matrix Z with contour lines at the<br />

values specified in vector v. The length of v determines the number of contour<br />

levels. To compute a single contour of level i, use contourc(Z,[i i]).<br />

C = contourc(x,y,Z), C = contourc(x,y,Z,n), and C = contourc(x,y,Z,v)<br />

compute contours of Z using vectors x and y to determine the x- and y-axis<br />

limits. x and y must be monotonically increasing.<br />

Remarks C is a two-row matrix specifying all the contour lines. Each contour line defined<br />

in matrix C begins with a column that contains the value of the contour<br />

(specified by v and used by clabel), and the number of (x,y) vertices in the<br />

contour line. The remaining columns contain the data for the (x,y)pairs.<br />

C = [value1 xdata(1) xdata(2)...value2 xdata(1) xdata(2)...;<br />

dim1 ydata(1) ydata(2)...dim2 ydata(1) ydata(2)...]<br />

Specifying irregularly spaced x and y vectors is not the same as contouring<br />

irregularly spaced data. If x or y is irregularly spaced, contourc calculates<br />

2-317

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

Saved successfully!

Ooh no, something went wrong!