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