Why can't I solve eigenvector correctly? (eigenvalue problem)
Afficher commentaires plus anciens
The following matrix H is composed of two different constant a and b:
a, b, 0, 0, 0, b
b, a, b, 0, 0, 0
0, b, a, b, 0, 0
0, 0, b, a, b, 0
0, 0, 0, b, a, b
b, 0, 0, 0, b, a
When I enter [X,E] = eig(H), it returns me:
X =
-1, 1, -1, -1, -1, 1
-1, 0, 1, 0, 1, 1
0, -1, 0, 1, -1, 1
1, -1, -1, -1, 1, 1
1, 0, 1, 0, -1, 1
0, 1, 0, 1, 1, 1
E =
a + b, 0, 0, 0, 0, 0
0, a + b, 0, 0, 0, 0
0, 0, a - b, 0, 0, 0
0, 0, 0, a - b, 0, 0
0, 0, 0, 0, a - 2*b, 0
0, 0, 0, 0, 0, a + 2*b
I first thought this was right, but then I put actual number a = -11.7 and b = -0.7 and then I get
X =
-0.4082 -0.5000 0.2887 -0.5000 0.2887 0.4082
-0.4082 -0.5000 -0.2887 0.5000 0.2887 -0.4082
-0.4082 0.0000 -0.5774 -0.0000 -0.5774 0.4082
-0.4082 0.5000 -0.2887 -0.5000 0.2887 -0.4082
-0.4082 0.5000 0.2887 0.5000 0.2887 0.4082
-0.4082 0 0.5774 0 -0.5774 -0.4082
E =
-13.1000 0 0 0 0 0
0 -12.4000 0 0 0 0
0 0 -12.4000 0 0 0
0 0 0 -11.0000 0 0
0 0 0 0 -11.0000 0
0 0 0 0 0 -10.3000
Now if I enter a = -11.7 and b = -0.7 AFTER solving the eigenvalue problem, the Eigenvalue are still the same (except the order is different). However, the eigenvectors seems to be not consistent with each other.
Why am I not getting the right general solution when solving symbolically, and what can I do to do it correctly?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!