MATLAB: How to use the eig function for nonsymmetric matrices

eig

Hi,
I have a non symmetric matrix and I try to figure out which option of the eig I should use? Thank you

Best Answer

The eig function does not require any additional options for nonsymmetric matrices. There is an example of this in the documentation for eig:
>> A = gallery('circul',3)
A =
1 2 3
3 1 2
2 3 1
>> [V,D] = eig(A);
>> V\A*V % verify that V diagonalizes A
ans =
6.0000 + 0.0000i 0.0000 - 0.0000i -0.0000 + 0.0000i
-0.0000 - 0.0000i -1.5000 + 0.8660i -0.0000 - 0.0000i
-0.0000 + 0.0000i -0.0000 + 0.0000i -1.5000 - 0.8660i
Related Question