scatter random points on a circle with a minimum distance and some constraints added
4 views (last 30 days)
Show older comments
Hi Matlab users,
Following my previous question:
Now I want to add a new feature to the code. After finding the selected set of points using the code above, I want to randomly choose one of the points and move it in a random direction on the big circle. Lets name the distance that I want to move "d". "d" should not be bigger than 0.005*R. so I guess it can be "d = rand*(0.005*R);"
Also again, this little move should not make the point to be closer than 0.005*R to any other point on the circle, and also should not go out of the circle. I would highly appreciate if you could guide me to fix it.
Best,
Argu
0 Comments
Answers (1)
Image Analyst
on 4 Apr 2019
I think the code by Bruno will do what you want, or can be adapted to do so.
4 Comments
See Also
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!