change dimension of data

1 次查看(过去 30 天)
Jay Hanuman
Jay Hanuman 2017-1-20
评论: Adam 2017-1-20
I have data in ab with n rows and 4 columns. I made it 1*n by
ab1=ab'
then
ab2=ab1(:).'
I want it back ab2 in ab format i.e. n*4. how to do it.

回答(1 个)

the cyclist
the cyclist 2017-1-20
reshape(ab2,n,4)
  2 个评论
Jay Hanuman
Jay Hanuman 2017-1-20
编辑:Jay Hanuman 2017-1-20
its doing 1st n element in 1st column then next n element in next column likewise, I want that 1st 4 element in 1st row, then next 4 element in 2nd row, likewise

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by