Hi eveybody,
im trying to build a diagonal matrix from another matrix in general form like following:
A=[a b,c d] —–> B[a 0 0 0,0 b 0 0,0 0 c 0,0 0 0 d]
dont want to write each array using blkdiag( ) function becuase my aimed matrix is too big.
tnx
Best Answer