等面积分布,就是把圆分成很多块面积相等的区域
n=360;
R=5;
t=0:0.02:2*pi;
plot(R*cos(t),R*sin(t),'r');
axis square
hold on
r=R*sqrt(rand(1,n));
seta=2*pi*rand(1,n);
x=r.*cos(seta);
y=r.*sin(seta);
plot(x,y,'*')
如果是等角度等半径.会感觉中心会比上面那个图很密.
n=360;
R=5;
t=0:0.02:2*pi;
plot(R*cos(t),R*sin(t),'r');
axis square
hold on
r=R*rand(1,n);
seta=2*pi*rand(1,n);
x=r.*cos(seta);
y=r.*sin(seta);
plot(x,y,'*')
温馨提示:答案为网友推荐,仅供参考