Changing block row matrix to block column matrix?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Seyyed Mohammad Saeed Damadi
am 12 Sep. 2018
Kommentiert: Seyyed Mohammad Saeed Damadi
am 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, ...).
4 Kommentare
Walter Roberson
am 12 Sep. 2018
Q = P;
P is already what you list as your desired output.
Akzeptierte Antwort
Andrei Bobrov
am 12 Sep. 2018
Bearbeitet: Andrei Bobrov
am 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 Kommentare
Andrei Bobrov
am 13 Sep. 2018
Bearbeitet: Andrei Bobrov
am 13 Sep. 2018
Please see my answer after edit.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Array and Matrix Mathematics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!