www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyImplicitFunctionLinePropertiesExample.m

    %% Modify Appearance of Implicit Plot
% Plot two circles centered at |(0,0)| with different radius values. For
% the first circle, use a dotted, red line. For the second circle, use a
% dashed, green line with a line width of 2 points.

f1 = @(x,y) x.^2 + y.^2 - 1;
fimplicit(f1,':r')

hold on
f2 = @(x,y) x.^2 + y.^2 - 2;
fimplicit(f2,'--g','LineWidth',2)
hold off