Plot 3-D surface
fsurf(
creates a
surface plot of the function f
)z = f(x,y)
over the
default interval [-5 5]
for x
and y
.
fsurf(
plots
over the specified interval. To use the same interval for both f
,xyinterval
)x
and y
,
specify xyinterval
as a two-element vector of
the form [min max]
. To use different intervals,
specify a four-element vector of the form [xmin xmax ymin
ymax]
.
fsurf(
plots
over the specified interval. To use the same interval for both funx
,funy
,funz
,uvinterval
)u
and v
,
specify uvinterval
as a two-element vector of
the form [min max]
. To use different intervals,
specify a four-element vector of the form [umin umax vmin
vmax]
.
fsurf(___,
sets
the line style, marker symbol, and surface color. For example, LineSpec
)'-r'
specifies
red lines. Use this option after any of the previous input argument
combinations.
fsurf(___,
specifies
surface properties using one or more name-value pair arguments. Use
this option after any of the input argument combinations in the previous
syntaxes.Name,Value
)
fsurf(
plots
into the axes specified by ax
,___)ax
instead of the
current axes (gca
).
returns
a fs
= fsurf(___)FunctionSurface
object or ParameterizedFunctionSurface
object,
depending on the inputs. Use fs
to query and modify
properties of a specific surface. For a list of properties, see FunctionSurface Properties or ParameterizedFunctionSurface Properties.