Eigenvalues and eigenvectors of symbolic matrix
lambda = eig(
returns a symbolic vector
containing the eigenvalues of the square symbolic matrix A
)A
.
[V,D] = eig(
returns matrices V and D. The
columns of A
)V
present eigenvectors of A
. The diagonal
matrix D
contains eigenvalues. If the resulting V
has the
same size as A
, the matrix A
has a full set of linearly
independent eigenvectors that satisfy A*V = V*D
.
[V,D,P] = eig(
returns a vector of indices
A
)P
. The length of P
equals to the total number of linearly
independent eigenvectors, so that A*V = V*D(P,P)
.
[V,D] = eig(vpa(
also returns
numeric eigenvectors.A
))
Matrix computations involving many symbolic variables can be slow. To increase the computational speed, reduce the number of symbolic variables by substituting the given values for some variables.