MAT350 6.2 MATLAB: Eigenvalues and Eigenvectors
In this activity you will find the eigenvalues and eigenvectors of a square matrix.
Consider the following matrix.
A = [3 1 0; 0 3 1; 0 0 3]
Use the command poly() to find the characteristic polynomial.
CharacteristicPoly = poly(A)
Use the command roots() to find the eigenvalues.
eigenvalues = roots(CharacteristicPoly)
The eig() command returns diagonal matrix D of eigenvalues and matrix V whose columns are the corresponding eigenvectors. For example, the value on the diagional in the first column of D is the eigenvalue associated with the eigenvector in the first column of V.
Note: Full answer to this question is available after purchase.
Reviews
There are no reviews yet.