Changing block row matrix to block column matrix?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Seyyed Mohammad Saeed Damadi
il 12 Set 2018
Commentato: Seyyed Mohammad Saeed Damadi
il 13 Set 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, ...).
Risposta accettata
Andrei Bobrov
il 12 Set 2018
Modificato: Andrei Bobrov
il 13 Set 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 Commenti
Andrei Bobrov
il 13 Set 2018
Modificato: Andrei Bobrov
il 13 Set 2018
Please see my answer after edit.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Array and Matrix Mathematics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!