How can I combine two double arrays into one but in different rows and columns within Matrix
조회 수: 6 (최근 30일)
이전 댓글 표시
So, for example, I have a matrix that is
A = [0;0;0;1;1;1;2;2;2]
and
B = [5,6,7,8;1,2,3,4;0,1,2,3]
and I want the result to be
C = [0,6;0,7;0,8;1,2;1,3;1,4;2,1;2,2;2,3]
Is there a simple way to do this?
Thanks
댓글 수: 1
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 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!