• Remix
  • Share
  • New Entry

on 19 Oct 2021
  • 12
  • 46
  • 0
  • 0
  • 272
n=2000;
x=rand(4,n);
i=1;
for j=1:n
x(4,i)=0.5-sqrt((x(1,i)-0.5)^2+(x(2,i)-0.5)^2);
if x(4,i)>0.5
x(:,i)=[];
else
if x(4,i)<0.08
x(4,i)=0;
end
i=i+1;
end
end
colormap bone
bubblechart(x(1,:),x(2,:),x(3,:),x(4,:),'MarkerFaceAlpha',0.35,'MarkerEdgeAlpha',0);
set(gcf,'Color','k')
axis square
axis off
Remix Tree