Plot 3-D implicit equation or function
fimplicit3(
plots
the 3-D implicit equation or function f
)f(x,y,z)
over
the default interval [-5 5]
for x
, y
,
and z
.
fimplicit3(
plots f
,[xmin
xmax ymin ymax zmin zmax]
)f(x,y,z)
over the interval [xmin
xmax]
for x
, [ymin ymax]
for
y
, and [zmin zmax]
for
z
. The fimplicit3
function uses
symvar
to order the variables and assign intervals.
fimplicit3(___,
specifies
line properties using one or more Name,Value
)Name,Value
pair
arguments. Use this option with any of the input argument combinations
in the previous syntaxes.
fimplicit3(
plots
into the axes with the object ax
,___)ax
instead of the
current axes object gca
.
returns
an implicit function surface object. Use the object to query and modify
properties of a specific surface. For details, see ImplicitFunctionSurface Properties.fi
= fimplicit3(___)
fimplicit3
assigns the symbolic variables in
f
to the x
axis, the y
axis, then the z
axis, and symvar
determines the order of the variables to be assigned. Therefore,
variable and axis names might not correspond. To force fimplicit3
to assign x, y, or z to its
corresponding axis, create the symbolic function to plot, then pass the symbolic
function to fimplicit3
.
For example, the following code plots the roots of the implicit function
f(x,y,z)
= x + z in two ways. The first way forces
fimplicit3
to assign x and
z to their corresponding axes. In the second way,
fimplicit3
defers to symvar
to determine
variable order and axis assignment: fimplicit3
assigns
x and z to the x and
y axes, respectively.
syms x y z; f(x,y,z) = x + z; figure; subplot(2,1,1) fimplicit3(f); view(-38,71); subplot(2,1,2) fimplicit3(f(x,y,z)); % Or fimplicit3(x + z);