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 Kommentar

Torsten
Torsten am 2 Feb. 2023
Bearbeitet: Torsten am 2 Feb. 2023
"random": following which distribution over which space ? "coordinates": dimension of the space ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022b

Gefragt:

am 2 Feb. 2023

Beantwortet:

am 2 Feb. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by