Changing block row matrix to block column matrix?
조회 수: 3 (최근 30일)
이전 댓글 표시
Seyyed Mohammad Saeed Damadi
2018년 9월 12일
댓글: Seyyed Mohammad Saeed Damadi
2018년 9월 13일
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, ...).
채택된 답변
Andrei Bobrov
2018년 9월 12일
편집: Andrei Bobrov
2018년 9월 13일
[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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Array and Matrix Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!