Symbolic Math Toolbox    
eig

Symbolic matrix eigenvalues and eigenvectors

Syntax

Description

lambda=eig(A) returns a symbolic vector containing the eigenvalues of the square symbolic matrix A.

[V,D] = eig(A) returns a matrix V whose columns are eigenvectors and a diagonal matrix D containing eigenvalues. If the resulting V is the same size as A, then A has a full set of linearly independent eigenvectors that satisfy A*V = V*D.

[V,D,P]=eig(A) also returns P, a vector of indices whose length is the total number of linearly independent eigenvectors, so that A*V = V*D(P,P).

lambda = eig(VPA(A)) and [V,D] = eig(VPA(A)) compute numeric eigenvalues and eigenvectors, respectively, using variable precision arithmetic. If A does not have a full set of eigenvectors, the columns of V will not be linearly independent.

Examples

The statements

return

eig(vpa(R)) returns

The statements

return

See Also

jordan, poly, svd, vpa


  dsolve expm 

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS