Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
eig ExamplesSee Also

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



[ Previous | Help Desk | Next ]