construct a lower triangular matrix with smaller matrices

Hi all,
I'm looking for an algorithm to compute a lower triangular matrix made out of smaller, non-symmetric matrices, e.g. like:
A = [...
1 2
3 4
5 6
];
B = [...
0 0 0
A 0 0
A A 0
A A A
];
Anyone can help? (Matlab 2015b btw)

댓글 수: 1

Jan
Jan 2017년 8월 12일
편집: Jan 2017년 8월 12일
What have you tried so far? Which problems occur? Some of the "0" are [3 x 2] matrices. Does this concern the zeros in the first row also?

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

 채택된 답변

Jan
Jan 2017년 8월 12일
편집: Jan 2017년 8월 12일
A = [1 2; ...
3 4; ...
5 6];
B = tril(ones(4,3), -1);
R = kron(B, A)
R =
[0, 0, 0, 0, 0, 0; ...
0, 0, 0, 0, 0, 0; ...
0, 0, 0, 0, 0, 0; ...
1, 2, 0, 0, 0, 0; ...
3, 4, 0, 0, 0, 0; ...
5, 6, 0, 0, 0, 0; ...
1, 2, 1, 2, 0, 0; ...
3, 4, 3, 4, 0, 0; ...
5, 6, 5, 6, 0, 0; ...
1, 2, 1, 2, 1, 2; ...
3, 4, 3, 4, 3, 4; ...
5, 6, 5, 6, 5, 6]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

AnS
2017년 8월 11일

편집:

Jan
2017년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by