Filter löschen
Filter löschen

Limiting an integer in a random matrix

1 Ansicht (letzte 30 Tage)
Aj
Aj am 29 Jan. 2014
Kommentiert: José-Luis am 29 Jan. 2014
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 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 29 Jan. 2014
placed together : what does that mean?
José-Luis
José-Luis am 29 Jan. 2014
Sounds like homework

Melden Sie sich an, um zu kommentieren.

Antworten (0)

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