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

4 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Alex Mcaulley
Alex Mcaulley il 25 Giu 2019
y = reshape(X,8,8)

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by