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.

contour3Purpose2contour3Three-dimensional contour plotSyntaxDescriptioncontour3(Z)contour3(Z,n)contour3(Z,v)contour3(X,Y,Z)contour3(X,Y,Z,n)contour3(X,Y,Z,v)contour3(...,LineSpec)[C,h] = contour3(...)contour3 creates a three-dimensional contour plot of a surface defined on arectangular grid.contour3(Z) draws a contour plot of matrix Z in a three-dimensional view. Zis interpreted as heights with respect to the x-y plane. Z must be at least a2-by-2 matrix. The number of contour levels and the values of contour levelsare chosen automatically. The ranges of the x- and y-axis are [1:n] and [1:m],where [m,n] = size(Z).contour3(Z,n) draws a contour plot of matrix Z with n contour levels in athree-dimensional view.contour3(Z,v) draws a contour plot of matrix Z with contour lines at thevalues specified in vector v. The number of contour levels is equal to length(v).To draw a single contour of level i, use contour(Z,[i i]).contour3(X,Y,Z), contour3(X,Y,Z,n), and contour3(X,Y,Z,v) use X and Yto define the x- and y-axis limits. If X is a matrix, X(1,:) defines the x-axis. IfY is a matrix, Y(:,1) defines the y-axis. When X and Y are matrices, they mustbe the same size as Z, in which case they specify a surface as surf does.contour3(...,LineSpec) draws the contours using the line type and colorspecified by LineSpec.[C,h] = contour3(...) returns the contour matrix C as described in thefunction contourc and a column vector containing handles to graphics objects.contour3 creates patch graphics objects unless you specify LineSpec, in whichcase contour3 creates line graphics objects.2-104

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

Saved successfully!

Ooh no, something went wrong!