How to generate random points in a particular angle ?

1 次查看(过去 30 天)
I need to generate random points in a particular angle, i.e., in a conic shape.

回答(1 个)

Torsten
Torsten 2017-6-7
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 个评论
Torsten
Torsten 2017-6-8
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by