How it is possible to find the eigenvalues of a 2*2 matrice without using of eigen function?
2 次查看(过去 30 天)
显示 更早的评论
Hi every one,
I tried to fine eigenvalues of 2*2 A matrix with det(A-landa*I) and my script is follow as:
clc
clear all
syms landa
a=input('please enter value of a:');
b=input('please enter value of b:');
c=input('please enter value of c:');
d=input('please enter value of d:');
A=[a b; c d]; I=[1 0;0 1]; B=landa*I;
D=det(A-B)
firstly, I defined landa as syms and after finding determinant, with a=1, b=2, c=3 and d=4, the result is 'landa^2 - 5*landa - 2' . (it is a 2 degree polynomial that saved in D)
so my problem is: How I could got the coefficients of this polynomial for finding the landa1 and landa2 as eigenvalues of A matrix?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle & Nuclear Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!