Info

This question is closed. Reopen it to edit or answer.

Rearranging column of m by 1 matrix.

1 view (last 30 days)
dipak sanap
dipak sanap on 21 Oct 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (2)

Thorsten
Thorsten on 21 Oct 2015
reshape(reshape(D, 2, [])', 1, [])
  2 Comments
dipak sanap
dipak sanap on 21 Oct 2015
Hey Thorsten, Thank you very much for reply, I was oblivious to reshape command. It works fine now.
Thorsten
Thorsten on 21 Oct 2015
Edited: Thorsten on 21 Oct 2015
Hey dipak, that's fine. Please formally accept my answer.

Jan
Jan on 21 Oct 2015
reshape(D, 95, [])

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!