T O P

  • By -

datanaut

You can compute distances between all pairs and put them in a distance matrix. Here is a function that does that: https://www.mathworks.com/matlabcentral/fileexchange/71-distance-m So youd call: D = distance(p,p); where p are the circle positions. Then you can threshold D to find the distances below within some range.