Surface plot
surf(
creates a three-dimensional surface plot, which 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
.
surf(
creates a surface plot and uses the column
and row indices of the elements in Z
)Z
as the
x- and y-coordinates.
surf(
plots
into the axes specified by ax
,___)ax
instead of the current
axes. Specify the axes as the first input argument.
surf(___,
specifies surface
properties using one or more name-value pair arguments. For example,
Name,Value
)'FaceAlpha',0.5
creates a semitransparent surface.
s = surf(___)
returns the chart surface object. Use
s
to modify the surface after it is created. For a list
of properties, see Surface Properties.