How to generate random points in a particular angle ?
1 回表示 (過去 30 日間)
古いコメントを表示
回答 (1 件)
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
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 Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!