%% Vary Circle Size
% Create a scatter plot using circles with different areas. 

% Copyright 2015 The MathWorks, Inc.


x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
a = linspace(1,100,200);
scatter(x,y,a)
%% 
% Corresponding elements in |x|, |y|, and |a| determine the location and 
% area  of each circle. To plot all circles with the equal area, specify |a| as 
% a numeric  scalar.