The MATEIG calculates the eigenvalues and the eigenvectors of a square input matrix U.
When the "Decomposition type" is set to 1, the block outputs the eigenvalues in a vector form; if the input is a M-by-M matrix the output is a M-by-1 vector.
When the "Decomposition type" is set to 2, the block outputs two matrices. For an M-by-M input matrix, the first output is an M-by-M diagonal matrix composed of the eigenvalues, and the second is an M-by-M matrix composed of the eigenvectors; the eigenvectors are represented by the columns of the matrix.
The equivalent of the MATEIG block in Scilab is "spec".
A=[1 12 32;21 35 46;70 8 19] When the "Decomposition type" is set to one the output is y=[-35.649;14.279;76.369] When the "Decomposition type" is set to two the outputs are: y1=[-35.649 0.000 0.000;0.000 14.279 0.000;0.000 0.000 76.369] y2=[0.557 0.080 0.349;0.330 -0.922 0.770;-0.762 0.379 0.533]