Effacer les filtres
Effacer les filtres

Randomly generated coordinates within arbitrary region

1 vue (au cours des 30 derniers jours)
Joppy
Joppy le 14 Fév 2018
Réponse apportée : KSSV le 14 Fév 2018
Is there any particularly convenient way to generate (randomly) coordinates within some arbitrary bounded region in the plane? Perhaps via the vertices of the boundary. Or is it better to first define the region numerically and then randomly select values from the grid?

Réponse acceptée

KSSV
KSSV le 14 Fév 2018
Generate the boundary and then create random numbers. You can google or search in mathworks you will get many useful discussions.

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by