Owning Class: linalgebra
Requires: MathScript RT Module
c = blockdiag(a, b, ...)
Legacy Name: blkdiag
Generates a matrix c with the following structure: c = [a, 0, ... , 0; 0, b, 0, ...]. You can specify an unlimited number of input matrices.
| Name | Description |
|---|---|
| a | Specifies the first matrix. |
| b | Specifies the second matrix. |
| Name | Description |
|---|---|
| c | Returns a block diagonal matrix. |
A = [1, 2; 3, 4]
B = [5, 6; 7, 8]
C = blockdiag(A, B)