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

4 次查看(过去 30 天)
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!

采纳的回答

Alex Mcaulley
Alex Mcaulley 2019-6-25
y = reshape(X,8,8)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by