How to generate random points in a particular angle ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I need to generate random points in a particular angle, i.e., in a conic shape.
1 Commento
Risposte (1)
Torsten
il 7 Giu 2017
Generate a random point in a box that contains your conic. Accept the random point if it falls into the conic, otherwise reject it.
Best wishes
Torsten.
2 Commenti
Torsten
il 8 Giu 2017
The answer by "Loginatorist" shows the principle for uniformly distributed points in a circle of radius r:
https://de.mathworks.com/matlabcentral/answers/294-generate-random-points-inside-a-circle
Best wishes
Torsten.
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!