I want to create a block matrix out of square matrices with the following structure
H = [A B C D;
B A B C;
C B A B;
D C B A]
Cleraly, if I was interested in only a 4x4 block, this would be enough. However, I'm interested in constructing such matrices out of a set of N square matrices A,B,C,D,E ... forming an N by N matrix of square matrices. Suppose I define
Matrices = [A B C D E];
What is the code I need to construct the corresponding 5 by 5 block matrix?

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 12월 17일

0 개 추천

cat()
vertcat()

댓글 수: 1

David Cyncynates
David Cyncynates 2020년 12월 17일
oh i see - cycle through Matrices and then cat. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2020년 12월 17일

댓글:

2020년 12월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by