How to generate random coordinates considering safety distance.
古いコメントを表示
Hi there, I wanted to generate multiple random coordinates with a safety distance, which means I don't want those coordinates to be too close to each other. For example the safety distance = 2, which means the minimun distance between the coordinates only can be 2, how can I do that? Thanks.
- Shin -
1 件のコメント
回答 (1 件)
Image Analyst
2023 年 2 月 2 日
0 投票
See attached demo. Adapt as needed.

カテゴリ
ヘルプ センター および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!