Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
I want to generate 50 uniformly distributed points in the rectangular area shown in the pic. Can anyone help me?
  3 comentarios
priti sharma
priti sharma el 6 de Dic. de 2019
I checked that, from there I got the answer for square area, I need points in rectangular area.
Walter Roberson
Walter Roberson el 6 de Dic. de 2019
Generate one of the coordinates with one randi range and the other coordinates with a different randi range.

Iniciar sesión para comentar.

Respuestas (1)

Yang Shen
Yang Shen el 6 de Dic. de 2019
Editada: Yang Shen el 6 de Dic. de 2019
r1 = randi(imax,150,100);

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by