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
Vis the same size asA, then the matrixAhas a full set of linearly independent eigenvectors that satisfyA*V = V*D.If
Vhas fewer columns thanA, then the matrixAis 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 λ.
[
also returns a vector of indices V,D,p] = eig(A)p. The length of p is
equal to the number of linearly independent eigenvectors, so A*V =
V*D(p,p).
Note
The symbolic eig function computes eigenvalues and eigenvectors
symbolically, with different syntaxes and functionalities compared to the MATLAB®
eig function. For example, the symbolic eig function does not
support solving the generalized eigenvalue problem (with two input arguments). To solve this
problem, convert the input matrices to a MATLAB numeric type and use the MATLAB
eig function instead.
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
eigfor numeric matrices that are not symbolic objects (not created bysym,syms, orvpa) invokes the MATLABeigfunction.