wrong eigen vectors - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

wrong eigen vectors

CHOTA CHATRICHOTA CHATRI Posts: 2Member
i'm using matlab7.can somebody plz tell me why the eigen vectors which is calculated by matlab are not the actual answers(which we calculate mathematically) whereas the eigen values come up correctly.
for eg.
[code]
>> a=[3 1 4;0 2 0;0 0 5]

a =

3 1 4
0 2 0
0 0 5

>> [v,d]=eig(a)

v =

1.0000 -0.7071 0.8944
0 0.7071 0
0 0 0.4472


d =

3 0 0
0 2 0
0 0 5
[/code]
but if we calculate eigen values and eigen vectors of a mathematically,they come out to be
5,-3,-3;(1,2,-1),(2,-1,0),(3,0,1).
thanks in advance
Sign In or Register to comment.