Info

此问题已关闭。 请重新打开它进行编辑或回答。

Rearranging column of m by 1 matrix.

1 次查看(过去 30 天)
dipak sanap
dipak sanap 2015-10-21
关闭: MATLAB Answer Bot 2021-8-20
I have m by 1 matrix and 95 is the factor of m, I want to rearrange it as, First 95 rows as a first column, 96 to 190 as second column and so on.
Any help would be appreciated. Thank you very much.

回答(2 个)

Thorsten
Thorsten 2015-10-21
reshape(reshape(D, 2, [])', 1, [])
  2 个评论
dipak sanap
dipak sanap 2015-10-21
Hey Thorsten, Thank you very much for reply, I was oblivious to reshape command. It works fine now.
Thorsten
Thorsten 2015-10-21
编辑:Thorsten 2015-10-21
Hey dipak, that's fine. Please formally accept my answer.

Jan
Jan 2015-10-21
reshape(D, 95, [])

此问题已关闭。

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by