Limiting an integer in a random matrix

조회 수: 1 (최근 30일)
Aj
Aj 2014년 1월 29일
댓글: José-Luis 2014년 1월 29일
Hi, I want to make a 10 x 10 matrix with values either 1 or 2 but i only want 17 "2's" randomly placed together in 5 separate groups and the rest of the matrix to be "1's".
I was wondering how I should approach this.
thanks
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 29일
placed together : what does that mean?
José-Luis
José-Luis 2014년 1월 29일
Sounds like homework

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

답변 (0개)

카테고리

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