contour3

Creates 3D contoured surface in an axes.

Syntax

contour3(z)

contour3(x, y, z)

contour3(hAxes, ...)

Inputs

x, y, z
Range of the x, y, and z axes.
Type: double | integer
Dimension: scalar | vector | matrix
hAxes
Axis handle.
Type: double
Dimension: scalar

Example

Contour3 plot example:

cla;
x=[0:0.1:2*pi];
y=x;
z=sin(x')*cos(y);
contour3(z)


Comments

If there are no axes, one will be created first. If x and y are omitted, the index of the columns of z is used for x coordinates and the index of the rows of z is used for y coordinates. If the first argument of contour3 () is an axes handle, surfaces will be created in that axes.