How to generate random points and place it within a rectangular/ square boundary?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

