www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/VaryCircleSizeandColorExample.m
%% Fill the Markers % Create a scatter plot and fill in the markers. |scatter| fills each marker % using the color of the marker edge. x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); sz = 25; c = linspace(1,10,length(x)); scatter(x,y,sz,c,'filled')