How to turn 64x1 matrix into an 8x8 matrix?

4 views (last 30 days)
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 64x1 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!

Accepted Answer

Alex Mcaulley
Alex Mcaulley on 25 Jun 2019
y = reshape(X,8,8)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!