Algorithmically create block matrices

조회 수: 2 (최근 30일)
David Cyncynates
David Cyncynates 2020년 12월 17일
댓글: David Cyncynates 2020년 12월 17일
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일
cat()
vertcat()
  댓글 수: 1
David Cyncynates
David Cyncynates 2020년 12월 17일
oh i see - cycle through Matrices and then cat. Thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by