How do I rearrange these matrix values?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hello.
My initial matrix I have is:

and I need to rearange it to look like this:

how would I go about coding this? Thank you.
Answers (2)
James Tursa
on 14 Apr 2020
A = your matrix
result = reshape(A,3,4)'
Jamal Nasir
on 14 Apr 2020
0 votes
%%%% if your initial matrix is a the matrix c is the result
b=a'
c=reshape(b,4,3)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!