Clear Filters
Clear Filters

matrix row and cloumn exchange

1 view (last 30 days)
Alina
Alina on 7 Mar 2014
Edited: Mischa Kim on 7 Mar 2014
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)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!