How to generate random points in a particular angle ?

I need to generate random points in a particular angle, i.e., in a conic shape.

1 Comment

Points in how many dimensions? Please give a more specific question.

Sign in to comment.

Answers (1)

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 Comments

Can you please explain with an example.
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.

Sign in to comment.

Categories

Find more on Random Number Generation in Help Center and File Exchange

Asked:

on 7 Jun 2017

Commented:

on 8 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!