필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
I want to generate 50 uniformly distributed points in the rectangular area shown in the pic. Can anyone help me?
  댓글 수: 3
priti sharma
priti sharma 2019년 12월 6일
I checked that, from there I got the answer for square area, I need points in rectangular area.
Walter Roberson
Walter Roberson 2019년 12월 6일
Generate one of the coordinates with one randi range and the other coordinates with a different randi range.

댓글을 달려면 로그인하십시오.

답변 (1개)

Yang Shen
Yang Shen 2019년 12월 6일
편집: Yang Shen 2019년 12월 6일
r1 = randi(imax,150,100);

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by