www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/VaryCircleSizeExample.m
%% Vary Circle Size % Create a scatter plot using circles with different sizes. Specify the % size in points squared x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); sz = linspace(1,100,200); scatter(x,y,sz) %% % Corresponding elements in |x|, |y|, and |sz| determine the location and % size of each circle. To plot all circles with the equal area, specify % |sz| as a numeric scalar.