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

4 visualizaciones (últimos 30 días)
Mihai Ciortuz
Mihai Ciortuz el 25 de Jun. de 2019
Comentada: Mihai Ciortuz el 25 de Jun. de 2019
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!

Respuesta aceptada

Alex Mcaulley
Alex Mcaulley el 25 de Jun. de 2019
y = reshape(X,8,8)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by