Changing block row matrix to block column matrix?
2 次查看(过去 30 天)
显示 更早的评论
Seyyed Mohammad Saeed Damadi
2018-9-12
评论: Seyyed Mohammad Saeed Damadi
2018-9-13
I have a block matrix p = [A B C ...]. I want to change the matrix into a column block matrix without changing the elements of inner matrices (A, B, ...).
采纳的回答
Andrei Bobrov
2018-9-12
编辑:Andrei Bobrov
2018-9-13
[EDIT]
B = 2; % the number of blocks
[m,n] = size(c);
out = reshape(permute(reshape(c,m,n/B,[]),[1,3,2]),m*B,[]);
4 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Array and Matrix Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!