Plot implicit symbolic equation or function
fimplicit(
plots
the implicit symbolic equation or function f
)f
over
the default interval [-5 5]
for x
and y
.
fimplicit(
plots f
,[xmin xmax
ymin ymax]
)f
over the interval xmin
<
x
< xmax
and
ymin
< y
<
ymax
. The fimplicit
function uses
symvar
to order the variables and assign intervals.
fimplicit(___,
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. Name,Value
pair settings
apply to all the lines plotted. To set options for individual lines,
use the objects returned by fimplicit
.
fimplicit(
plots
into the axes specified by ax
,___)ax
instead of the
current axes gca
.
returns
an implicit function line object. Use the object to query and modify
properties of a specific line. For details, see ImplicitFunctionLine Properties.fi
= fimplicit(___)
fimplicit
assigns the symbolic variables
in f
to the x
axis, then the y
axis,
and symvar
determines the order of the variables to be assigned. Therefore, variable
and axis names might not correspond. To force fimplicit
to assign
x or y to its corresponding axis, create the symbolic
function to plot, then pass the symbolic function to fimplicit
.
For example, the following code plots the roots of the implicit function f(x,y) = sin(y) in two ways. The first way forces the waves to oscillate with respect to the y axis. The second way assigns y to the x axis because it is the first (and only) variable in the symbolic function.
syms x y; f(x,y) = sin(y); intvl = [-6 6]*pi; figure; subplot(2,1,1) fimplicit(f,intvl); subplot(2,1,2) fimplicit(f(x,y),intvl); % Or fimplicit(sin(y) == 0,intvl);