Create Diagonal Matrix
Create a square diagonal matrix from the specified vector.
Description
The Create Diagonal Matrix block fills the diagonal of an M by M output matrix with elements contained in a vector D of length M or a matrix of size 1 by M or M by 1. Elements outside the diagonal are zero.