Creates a matrix from only the diagonal entries of a matrix. diag(A) Example diag(147258369)=100050009