- /
-
Spiral from random points
on 20 Oct 2022
- 4
- 7
- 0
- 0
- 217
n=1e4;
x=randi([-n n],1,n);
y=randi([-n n],1,n);
c=rand(1,n);
t=3*pi/180;
h=0.98;
x1=h*x*cos(t)-h*y*sin(t);
y1=h*x*sin(t)+h*y*cos(t);
scatter(x,y,5,c,'filled','o'),hold on
scatter(x1,y1,5,c,'filled','o')
axis([-n n -n n])
axis equal off