matrix row and cloumn exchange
1 view (last 30 days)
Show older comments
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]
0 Comments
Accepted Answer
Mischa Kim
on 7 Mar 2014
Edited: Mischa Kim
on 7 Mar 2014
Alina, use
b = reshape(a',2,4)'
0 Comments
More Answers (0)
See Also
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!