Can anyone help in generating 50 uniformly distributed points in a rectangular area given in following rectangular area?

1 vue (au cours des 30 derniers jours)
I want to generate 50 uniformly distributed points in the rectangular area shown in the pic. Can anyone help me?
  3 commentaires
priti sharma
priti sharma le 6 Déc 2019
I checked that, from there I got the answer for square area, I need points in rectangular area.
Walter Roberson
Walter Roberson le 6 Déc 2019
Generate one of the coordinates with one randi range and the other coordinates with a different randi range.

Connectez-vous pour commenter.

Réponses (1)

Yang Shen
Yang Shen le 6 Déc 2019
Modifié(e) : Yang Shen le 6 Déc 2019
r1 = randi(imax,150,100);

Community Treasure Hunt

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

Start Hunting!

Translated by