How to determine eigenvalues and eigenvectors?
Show older comments
I have two matrices for example A and B. A=[3,9;3,5] and B=[2,0;0,8].
They are part of an eigenvalue problem of the form: (A-(lambda)B)x=0.
How do I find the eigenvalues and vectors using matlab? Please solve this problem using values and sharee the code from your monitor if possible.
Accepted Answer
More Answers (2)
Abderrahim. B
on 13 Jul 2022
Edited: Abderrahim. B
on 13 Jul 2022
Use eig
A = [3,9;3,5];
[eVecs, eVals] = eig(A)
Eigenvalues are the diagonal elements of eVals. To get them use diag
eValues = diag(eVals)
% doc eig for more details
A=[3,9;3,5]
B=[2,0;0,8]
[vA, dA] = eig(A)
[vB, dB] = eig(B)
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!