www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyMarkerPropertiesExample.m
%% Change Marker Color and Line Width % Create vectors |x| and |y| as sine and cosine values with random noise. Create % a scatter plot and set the marker edge color, marker face color, and line width. theta = linspace(0,2*pi,300); x = sin(theta) + 0.75*rand(1,300); y = cos(theta) + 0.75*rand(1,300); sz = 40; scatter(x,y,sz,'MarkerEdgeColor',[0 .5 .5],... 'MarkerFaceColor',[0 .7 .7],... 'LineWidth',1.5)