From: Griffith University Hoque on
Hi

for the two line of MATLAB code:
---------------------------------------------
[V1, D1]=eig(A, B)
[V2, D2]=eig(inv(B)*A)

I have a question/query:
---------------------------------
According to the MATLAB definations of eig(A) and eig(A, B),
should not it be true that, V1=V2?

I could not find why V1 and V2 are not resulting same - any help is appreciated.

Thanks
Tamjid
From: nanren888 on
"Griffith University Hoque" <t.hoque(a)griffith.edu.au> wrote in message <hlt0e3$m45$1(a)fred.mathworks.com>...
> Hi
>
> for the two line of MATLAB code:
> ---------------------------------------------
> [V1, D1]=eig(A, B)
> [V2, D2]=eig(inv(B)*A)
>
> I have a question/query:
> ---------------------------------
> According to the MATLAB definations of eig(A) and eig(A, B),
> should not it be true that, V1=V2?
>
> I could not find why V1 and V2 are not resulting same - any help is appreciated.
>
> Thanks
> Tamjid
I suspect that you will find that the eigenvectors of the two forms are simply scaled versions of each other. That is the eigenvectors of the generalised form will not be unit length. Nonetheless they form a solution to the equation given.