Hi Matlab users,
I am trying to write a code to randomly scatter points on a cirlce which these points should have a minimum distant on this circle.
R=1;for i=1:100 theta(i) = 2*pi*rand(); r(i) = R*sqrt(rand()); x = r.*cos(theta); y = r.*sin(theta); end plot(x,y,'*')axis equal
This code just creates the points. I want to add a condition that not two points can be closer than (0.005*R) to eachother.
Best,
Argu
Best Answer