contour3(Z)
contour3(X, Y, Z)
contour3(..., levels)
contour3(..., LineSpec)
contour3(ax, ...)
M = contour3(...)
[M, h] = contour3(...)
| Parameter | Description |
|---|---|
| X | x-coordinates: vector or matrix. |
| Y | y-coordinates: vector or matrix. |
| Z | z-coordinates: vector or matrix. |
| levels | Contour levels: scalar or vector. |
| LineSpec | Line style and color |
| ax | a scalar graphics object value: parent container, specified as a axes. |
| Parameter | Description |
|---|---|
| M | Contour matrix. |
| h | a graphics object: contour type. |
contour3(Z) generates a 3-D contour plot illustrating the isolines of the matrix Z, where Z represents heights on the x-y plane.
The x and y coordinates in the plane correspond to the column and row indices of Z, respectively.
To specify the x and y coordinates for Z values, use contour3(X,Y,Z).
f = figure();
[X,Y,Z] = sphere(50);
[M, C ]= contour3(X,Y,Z);
C.LineWidth = 3;
| Version | Description |
|---|---|
| 1.3.0 | initial version |