Filter löschen
Filter löschen

Algorithmically create block matrices

3 Ansichten (letzte 30 Tage)
David Cyncynates
David Cyncynates am 17 Dez. 2020
Kommentiert: David Cyncynates am 17 Dez. 2020
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?

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 17 Dez. 2020
cat()
vertcat()
  1 Kommentar
David Cyncynates
David Cyncynates am 17 Dez. 2020
oh i see - cycle through Matrices and then cat. Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling 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!

Translated by