It is a simple script to get the diagonal matrix from a square matrix.
Script to return the diagonal matrix from a square matrix.
Sintax: d = diagonal(A)
A -> square matrix.
Upload date : 2014-03-13 13:40:03
MD5 : 50eb431f93a591707a4cdd7fcf942729
SHA1 : 0ddbe5f5147ab2a0b84a52b739cd2acf5d6b7dc2
Downloads : 1202
This feature is performed simply by the following: d = diag(diag(A))