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!