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!