MAT SPECTRAL DECOMPOSITION OF A TO S,L forms the spectral decomposition A=S*L*S' of a symmetric matrix A where S is the orthogonal matrix of eigenvectors (as columns) and L is the diagonal matrix of eigenvalues (saved as a column vector). D = More information on matrix decompositions