matrix reshaping
이전 댓글 표시
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...
채택된 답변
추가 답변 (2개)
Honglei Chen
2011년 11월 17일
You can try
B = A.';
B = B(:).';
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!