Generate random circles in the square box with different diameters
Mostra commenti meno recenti
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 Commento
TRAN Quang Vu
il 22 Lug 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.
Risposta accettata
Più risposte (1)
Image Analyst
il 13 Mar 2015
2 voti
See my attached demo. Adapt it as needed with the rand() function to make random radii.
1 Commento
Alpha Grey
il 8 Mag 2018
Excellent!!!!
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!