You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2020. It is now read-only.
Solves the eigenproblem of a matrix A and return a vector with all (and degenerate) eigenvalues.
ArgumentM
Matrix
Returns1. entry
Matrix : The eigenvalues of the matrix stored in a vector.
Returns2. entry
Matrix : The eigenvectors of the matrix stored in a matrix.
Example
eig([1,2,3;4,5,6;7,8,9])
Returns a vector with the three eigenvalues 16.11684, -1.11684 and 0 of this 3x3 matrix.
Example
[vals, vecs] = eig([1,2,3;4,5,6;7,8,9])
Saves a vector with the three eigenvalues 16.11684, -1.11684 and 0 of this 3x3 matrix in the variable vals and a matrix containing the eigenvectors in the variable vecs.