eig
Eigenvalues and eigenvectors of symbolic matrix
Description
[
returns the eigenvectors and eigenvalues of V
,D
] = eig(A
)A
as symbolic matrices
V
and D
. The columns of V
present
eigenvectors of A
. The main diagonal of D
present
eigenvalues of A
.
If
V
is the same size asA
, then the matrixA
has a full set of linearly independent eigenvectors that satisfyA*V = V*D
.If
V
has fewer columns thanA
, then the matrixA
is defective. In this case, at least one of the eigenvalues λ has an algebraic multiplicity m > 1 with fewer than m linearly independent eigenvectors associated with λ.
Examples
Input Arguments
Output Arguments
Tips
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.
Calling
eig
for numeric matrices that are not symbolic objects (not created bysym
,syms
, orvpa
) invokes the MATLAB®eig
function.The symbolic
eig
function does not support solving the generalized eigenvalue problem (with two input arguments). To solve the generalized eigenvalue problem, use the MATLABeig
function instead by converting the input matrices to a MATLAB numeric type.