Contour plot under surface plot
surfc(
creates a three-dimensional surface plot with a contour plot underneath. A
surface plot is a three-dimensional surface that has solid edge colors and solid
face colors. The function plots the values in matrix X
,Y
,Z
)Z
as
heights above a grid in the x-y plane
defined by X
and Y
. The color of the
surface varies according to the heights specified by
Z
.
surfc(
creates a surface and
contour plot and uses the column and row indices of the elements in
Z
)Z
as the x- and y
-coordinates.
surfc(
plots into
the axes specified by ax
,___)ax
instead of the current axes. Specify
the axes as the first input argument.
surfc(___,
specifies surface properties using one or more name-value pair arguments. For
example, Name,Value
)'FaceAlpha',0.5
creates a semitransparent
surface.
sc = surfc(___)
returns a graphics array that
includes the chart surface object and the contour object. Use
sc
to modify the surface and contour plots after they are
created. For a list of properties, see Surface Properties and Contour Properties.