How to partition matrix?
33 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ammy
am 8 Aug. 2021
Kommentiert: Ammy
am 8 Aug. 2021
I have four matrices of same order A,B,C,D
I combined them in one as
E=[A B;C D];
Now how can I get back A,B,C,D with the help of E?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 8 Aug. 2021
[R,C,~] = size(E);
HR = floor(R/2); HC = floor(C/2);
A = E(1:HR, 1:HC, :);
B = E(1:HR, HC+1:C, :);
C = E(HR+1:R, 1:HC, :);
D = E(HR+1:R, HC+1:C, :);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Decomposition 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!