Create Diagonal Matrix
The MATDIAG block create a diagonal matrix from a 1D vector. If the input is a Mx1 vector than the output is an MxM matrix.
The equivalent function of MATDIAG in Scilab is `diag(vm)`_ with vm a column vector.
if the `input`_ of the block is U=ones(5,1) then the output is:
y=[1 0 0 0 0;0 1 0 0 0;0 0 1 0 0;0 0 0 1 0;0 0 0 0 1]