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

    %% Change Line Properties and Display Markers
% Plot three sine curves with a phase shift between each line. 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
fplot(sin(x+pi/5),'Linewidth',2)
hold on
fplot(sin(x-pi/5),'--or')
fplot(sin(x),'-.*c')
legend('show','Location','best')
hold off