eig
- :
e =eig(A)¶ - :
[V, D] =eig(A)¶ - :
[V, D, W] =eig(A)¶ - :
e =eig(A, B)¶ - :
[…] =eig(…, opt)¶ Compute eigenvalues and eigenvectors.
eig (A)returns the eigenvalues of the square matrix A. With two outputs, the columns of V are right eigenvectors and D holds the eigenvalues, so thatA*V = V*D. A third output gives left eigenvectors withW'*A = D*W'.eig (A, B)solves the generalized problemA*V = B*V*D.Options (strings, any order after the matrices):
"vector","matrix","balance","nobalance","chol"and"qz".