MATLAB: How to turn 64×1 matrix into an 8×8 matrix

MATLABmatrix concatenate turn into another matrix

X =
0.3980097
0.3999563
0.4341737
0.3996162
0.4060919
0.4148077
0.393784
0.4122916
0.4037718
0.4078162
0.4021725
0.3954307
0.4059472
0.3888974
0.3982632
0.4036705
0.4056201
.
.
.
It is a 64×1 and i want to take the first 8 rows and make a column out of it and then rows(8:16) into another column and so on..
Any help would be amazing!

Best Answer

y = reshape(X,8,8)