Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
I want to generate 50 uniformly distributed points in the rectangular area shown in the pic. Can anyone help me?
  3 Kommentare
priti sharma
priti sharma am 6 Dez. 2019
I checked that, from there I got the answer for square area, I need points in rectangular area.
Walter Roberson
Walter Roberson am 6 Dez. 2019
Generate one of the coordinates with one randi range and the other coordinates with a different randi range.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Yang Shen
Yang Shen am 6 Dez. 2019
Bearbeitet: Yang Shen am 6 Dez. 2019
r1 = randi(imax,150,100);

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by