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

    %% Change Line Properties and Display Markers
% Plot three concentric circles of increasing diameter. For the first
% line, use a linewidth of |2|. For the second, specify a dashed red line
% style with circle markers. For the third, specify a cyan, dash-dot line
% style with asterisk markers. Display the legend.

syms x y
circle = x^2 + y^2;
fimplicit(circle == 1, 'Linewidth', 2)
hold on
fimplicit(circle == 2, '--or')
fimplicit(circle == 3, '-.*c')
legend('show','Location','best')
hold off