Changing block row matrix to block column matrix?
6 views (last 30 days)
Show older comments
Seyyed Mohammad Saeed Damadi
on 12 Sep 2018
Commented: Seyyed Mohammad Saeed Damadi
on 13 Sep 2018
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, ...).
Accepted Answer
Andrei Bobrov
on 12 Sep 2018
Edited: Andrei Bobrov
on 13 Sep 2018
[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 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!