Plot 3-D mesh
fmesh(
creates a
mesh plot of the expression f
)z = f(x,y)
over the
default interval [-5 5]
for x
and y
.
fmesh(
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]
.
fmesh(
plots
the parametric mesh 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]
.
fmesh(___,
sets
the line style, marker symbol, and color of the mesh. For example, LineSpec
)'-r'
specifies
red lines. Use this option after any of the previous input argument
combinations.
fmesh(___,
specifies
properties of the mesh using one or more name-value pair arguments.
Use this option with any of the input argument combinations in the
previous syntaxes.Name,Value
)
fmesh(
plots
into the axes specified by ax
,___)ax
instead of the
current axes gca
.
returns
a fs
= fmesh(___)FunctionSurface
object or a 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.