blkdiag
Block diagoal matrix of a set of matrices.
y=blkdiag(a, b, c, d ...)
Inputs
{a,b,c,d,...} A set of matrices
Outputs
y A matrix that contains the inputs in the diagonal.


Example
>>a=[1 2; 3 4];
>>b=[5 6; 7 8];
>>blkdiag(a,b)
  1  2  0  0
  3  4  0  0
  0  0  5  6
  0  0  7  8