www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/ModifyImplicitPlotAfterCreationExample.m

    %% Modify Implicit Plot After Creation
% Plot $y \sin(x) +x \cos(y) = 1$. Specify an output to make |fimplicit| return
% the plot object.

syms x y
eqn = y*sin(x) + x*cos(y) == 1;
fi = fimplicit(eqn)

%%
% Change the plotted equation to $x \cos(y) + y \sin(x) = 0$ by using dot
% notation to set properties. Similarly, change the line color to red and
% line style to a dash-dot line. The horizontal and vertical lines in the
% output are artifacts that should be ignored.

fi.Function = x/cos(y) + y/sin(x) == 0;
fi.Color = 'r';
fi.LineStyle = '-.';