Hi.

I don't get it, why not using this code: (A is your matrix)

eig(A)

matlab probably finds the eigenvalues. Otherwise: what exactly was your question?

Cheers,

Rapha

Edit:

I don't know. Why don't you try out an example and test it?As far as I know, matlab eig command can't calculate huge values such as 1e+30 exactly.

No, I do not.So I need to calculate exact eigenvalues for very large matrices like 1000-by-1000. Do you know anything about it?

No.Have you ever heard that eig command can't calculate big values?