How to generate random points and place it within a rectangular/ square boundary?
Afficher commentaires plus anciens
I have generated 'n' random points( Say n= 50) and created line segments. So I want to place these linesegments within a rectangular boundary and eliminate those which lie outside the domain and keep those which are partially inside the domain.
Could someone help me how to do the boundary conditions?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

