reshape 4-dimension array
이전 댓글 표시
I have an array dimensioned A(m,m,M,M). I would like to "reshape" this so that each mxm block is in the correct position in a B(m*M,m*M) matrix where the correct position is indicated by the third and fourth indices.
Can someone show me a straightforward way to do this?
채택된 답변
추가 답변 (1개)
Download this File Exchange package,
and do the whole thing in one line,
B=blkReshape(A,[m,m],[M,M]);
카테고리
도움말 센터 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!