How can I insert values from the vertical 3rd matrix dimension in between the rows of the vertical 1st and 2nd dimension?
조회 수: 1 (최근 30일)
이전 댓글 표시
For matrix 210x2x4 I want to generate a 840x2 matrix, where in this order:
[matrix(1,:,1);matrix(1,:,2);matrix(1,:,3);matrix(1,:,4);matrix(2,:,1);matrix(2,:,2);....]
I'm still not clear how to insert values between values in matrices, any suggestions?
댓글 수: 0
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 6월 13일
Use permute() and then reshape(). Looks to me like you would want to permute() with [1 3 2].
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!