David
Farruggio

# blkdiag

Construct block diagonal matrix from input ar

### Syntax and Description

 blkdiag(a,b,c,d,...) where a, b, c, d, ... are matrices, outputs a block diagonal matrix of the form $\left[ \begin{array}{ccccc} a & 0 & 0 & 0 & 0 \\ 0 & b & 0 & 0 & 0 \\ 0 & 0 & c & 0 & 0 \\ 0 & 0 & 0 & d & 0 \\ 0 & 0 & 0 & 0 & \ddots \end{array}\right].$ The input matrices do not have to be square, nor do they have to be of equal size.

Back to functions