converting numbers to matrix(matrix formation)

1 vue (au cours des 30 derniers jours)
tina jain
tina jain le 28 Avr 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?

Réponse acceptée

Roger Stafford
Roger Stafford le 28 Avr 2015
Use the 'reshape' function.

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by