How to generate random points in a particular angle ?

조회 수: 2 (최근 30일)
SUSHMA MB
SUSHMA MB 2017년 6월 7일
댓글: Torsten 2017년 6월 8일
I need to generate random points in a particular angle, i.e., in a conic shape.
  댓글 수: 1
Adam
Adam 2017년 6월 7일
Points in how many dimensions? Please give a more specific question.

댓글을 달려면 로그인하십시오.

답변 (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
SUSHMA MB
SUSHMA MB 2017년 6월 7일
Can you please explain with an example.
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