Generate random circles in the square box with different diameters
Show older comments
I was able to generate random circles inside the square box of dimension L=1 with the same diameter without overlapping, where X and Y are between -0.5 to 0.5.
Now, I want to generate random circles with 3 different diameters and I need to save the location of X,Y and diameter for each circle. It would be nice if we have the same number of circles per each diameter.
If you have any idea how to do so, please help me. Thanks
1 Comment
TRAN Quang Vu
on 22 Jul 2020
Hello,
I want to generate random circles inside the square box of dimension L=1 with the same diameter without overlapping, where X and Y are between -0.5 to 0.5. Can you help me? Thansk you.
Accepted Answer
More Answers (1)
Image Analyst
on 13 Mar 2015
2 votes
See my attached demo. Adapt it as needed with the rand() function to make random radii.
1 Comment
Alpha Grey
on 8 May 2018
Excellent!!!!
Categories
Find more on MATLAB 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!