MATLAB: Reshaping array horizontally elementwise

reshape

Hi,
I have a 1 x 100 array, A. How can I reshape it so that I have a 10 x 10 double so that the first ten elements are the first row, second ten element are the second row, etc.
I tried reshape(A, [10,10]) but that arranged them down columns instead of rows. Any help would be appreciated!
Sushma

Best Answer

got it!
reshape(A, 10 [])'