How to reshape rows into columns
显示 更早的评论
How can I change the following matrix:
[1, 5,0,0; 2,4,0,0; 3, 2,6,4]
to look like:
[1,5; 2, 4; 3,2; 3,6; 3,4]?
Any suggestion would be great. Thanks
采纳的回答
更多回答(1 个)
Sivakumaran Chandrasekaran
2011-9-1
0 个投票
Hi, There is a command named reshape. Check with it.
2 个评论
Amandeep
2011-9-1
Oleg Komarov
2011-9-1
@Siva: if I were you I wouldn't leave my mail on a forum.
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!