How to generate random coordinates considering safety distance.

3 次查看(过去 30 天)
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 个评论
Torsten
Torsten 2023-2-2
编辑:Torsten 2023-2-2
"random": following which distribution over which space ? "coordinates": dimension of the space ?

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2023-2-2
See attached demo. Adapt as needed.

类别

Help CenterFile Exchange 中查找有关 Spline Postprocessing 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by