Eigen Vectors and Values using Matlab

14 ビュー (過去 30 日間)
Diana
Diana 2021 年 2 月 25 日
回答済み: Bjorn Gustavsson 2021 年 2 月 25 日
I'm using the following code to find the eigen vectors, now when I evaluate lambda manually I get dfferent numbers
A=[4 6 2;6 0 3;2 3 -1];
[lambda]=eig(A)
lambda=round(lambda,2);
L=length(lambda)
E1=rref(A - lambda(1)*eye(L),1e-14)
E2=rref(A - lambda(2)*eye(L),1e-14)
E3=rref(A - lambda(3)*eye(L),1e-14)
But I'm getting the trivial solution while I shouldn't

回答 (2 件)

Bjorn Gustavsson
Bjorn Gustavsson 2021 年 2 月 25 日
Why not calculating the eigenvectors at once?
[Ev,lambda]=eig(A)
Also, when rounding the eigenvalues, you're no longer guaranteed to work with the eigenvalues - then the trivial solution is most likely the only solution.
HTH

KSSV
KSSV 2021 年 2 月 25 日
A=[4 6 2;6 0 3;2 3 -1];
lambda=eig(A)
syms l
eqn = det(A-l*eye(3))==0 ;
solve(eqn,l) ;
l = double(vpasolve(eqn,l))
  2 件のコメント
Diana
Diana 2021 年 2 月 25 日
What about the eigen vectors why rref() is giving me the trivial solution
KSSV
KSSV 2021 年 2 月 25 日
[v,d,w]=eig(A)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by