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

    %% Specify Line Style, Color, and Marker
% Plot three lines. Use a green line with no markers for the first line.
% Use a blue dashed line with circle markers for the second line. Use cyan
% asterisk markers for the third line, but do not plot the line.

% Copyright 2015 The MathWorks, Inc.


x = logspace(0,3);
y1 = x;
y2 = 2*x;
y3 = 3*x;
semilogx(x,y1,'g',x,y2,'bo--',x,y3,'c*')