converting numbers to matrix(matrix formation)

1 Ansicht (letzte 30 Tage)
tina jain
tina jain am 28 Apr. 2015
Beantwortet: Roger Stafford am 28 Apr. 2015
If I am having some numbers, e.g
x=[ 12 12 12 2 2 2 2 3 3 ];
and now I want to convert into a matrix of 3 * 3.
Which MATLAB function is suitable for this?

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 28 Apr. 2015
Use the 'reshape' function.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion 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