how to extract two 2D arrays into one 1D array?
이전 댓글 표시
say I have A=[1 2 3; 4 5 6; 3 2 5] and B=[4 5; 1 2; 3 9] and I want the output be like this [1 2 3 4 5 4 5 6 1 2 3 2 5 3 9] please tell me how to do with a vectorized code. Thank you
답변 (1개)
Andrei Bobrov
2015년 12월 15일
reshape([A, B]',1,[]);
카테고리
도움말 센터 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!