フィルターのクリア

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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by