Contour plot under mesh surface plot
meshc(
creates a mesh plot with a contour plot underneath. A mesh plot is a
three-dimensional surface that has solid edge colors and no 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 edge colors vary
according to the heights specified by Z
.
meshc(
creates a mesh and contour
plot and uses the column and row indices of the elements in
Z
)Z
as the x- and
y-coordinates.
meshc(___,
specifies additional options for the Name,Value
)meshc
plot using one or
more name-value pair arguments. Specify the options after all other input
arguments. For a list of properties, see Surface Properties.
meshc(
plots into
the axes specified by ax
,___)ax
instead of the current axes. Specify
the axes as the first input argument.
sc = meshc(___)
returns a graphics array that
includes the chart surface object and the contour object. Use
sc
to modify the mesh and contour plots after they are
created. For a list of properties, see Surface Properties and Contour Properties.