How to generate random points in a particular angle ?
Show older comments
I need to generate random points in a particular angle, i.e., in a conic shape.
1 Comment
Adam
on 7 Jun 2017
Points in how many dimensions? Please give a more specific question.
Answers (1)
Torsten
on 7 Jun 2017
0 votes
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.
Categories
Find more on Random Number Generation 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!