How to partition matrix?
조회 수: 26 (최근 30일)
이전 댓글 표시
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
채택된 답변
Walter Roberson
2021년 8월 8일
[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, :);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Decomposition에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!