matrix row and cloumn exchange

1 次查看(过去 30 天)
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]

采纳的回答

Mischa Kim
Mischa Kim 2014-3-7
编辑:Mischa Kim 2014-3-7
Alina, use
b = reshape(a',2,4)'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by