matrix row and cloumn exchange

a=[14 13 9 10
6 5 1 2]
i m trying to convert it into
b=[ 14 13
9 10
6 5
1 2]

 Accepted Answer

Mischa Kim
Mischa Kim on 7 Mar 2014
Edited: Mischa Kim on 7 Mar 2014
Alina, use
b = reshape(a',2,4)'

More Answers (0)

Asked:

on 7 Mar 2014

Edited:

on 7 Mar 2014

Community Treasure Hunt

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

Start Hunting!