Contour plot under a 3-D shaded surface plot

`surfc(Z)`

surfc(Z,C)

surfc(X,Y,Z)

surfc(X,Y,Z,C)

surfc(...,'* PropertyName*',PropertyValue)

surfc(axes_handles,...)

h = surfc(...)

`surfc(Z)`

creates a contour
plot under the three-dimensional shaded surface from the *z* components
in matrix `Z`

, using `x`

`=`

`1:n`

and `y`

`=`

`1:m`

,
where `[m,n] = size(Z)`

. The height, `Z`

,
is a single-valued function defined over a geometrically rectangular
grid. `Z`

specifies the color data, as well as surface
height, so color is proportional to surface height.

`surfc(Z,C)`

plots the height
of `Z`

, a single-valued function defined over a geometrically
rectangular grid, and uses matrix `C`

, assumed to
be the same size as `Z`

, to color the surface.

`surfc(X,Y,Z)`

uses `Z`

for
the color data and surface height. `X`

and `Y`

are
vectors or matrices defining the `x`

and `y`

components
of a surface. If `X`

and `Y`

are
vectors, `length(X)`

`=`

`n`

and `length(Y)`

`=`

`m`

,
where `[m,n]`

`=`

`size(Z)`

.
In this case, the vertices of the surface faces are *(X(j),
Y(i), Z(i,j))* triples. To create X and Y matrices for arbitrary
domains, use the `meshgrid`

function.

`surfc(X,Y,Z,C)`

uses `C`

to
define color. MATLAB^{®} performs a linear transformation on this
data to obtain colors from the current colormap.

`surfc(...,'`

specifies surface properties along with the data.* PropertyName*',PropertyValue)

`surfc(axes_handles,...)`

plots
into the axes with handle `axes_handle`

instead of
the current axes (`gca`

).

`h = surfc(...)`

returns
handles to a chart surface and a contour object.

`axis`

|`caxis`

|`colormap`

|`contour`

|`delaunay`

|`imagesc`

|`mesh`

|`meshgrid`

|`pcolor`

|`shading`

|`surf`

|`trisurf`

|`view`

Was this topic helpful?