# how to find eignvalues of a complex matrix???

Greetings to all,,,
I am working on complex numbers in arduino and i have to calculate eign values of complex number matrix. I installed the library but i do not know about the commands.

Can anyone tell how can i find eign values ???

Basically I want to convert a matlab code in arduino. I have done many other things but stuck in eign values. Below is the part of matlab code that i want to convert

[V,Dia] = eig(Rxx);
[Y,Index] = sort(diag(Dia));
EN = V(:,Index(1:6-1));

Rxx is a 6x6 array of complex number.. I am using arduino due board. So I need a bit help..

I installed the library

Which library would that be ? Does it come with any examples ?

No, there is no example in the library,,,
I get the library from

https://github.com/Dominicguri/Arduino/tree/master/libraries/Eigen30

I think the question was about the complex number library, not the eigen...

aarg:
I think the question was about the complex number library, not the eigen...

Except the link posted was to the eigen library ...

Why not use MATLAB to get the eigenvalues?

@ jermington i want to convert matlab code to arduino ,, I have already find the eign values in matlab but don't know how to find in arduino...

No you don't. You know how to type some command in MATLAB that calculates it for you. I suggest you learn the algorithm, and program it yourself.

Why do you want to do this on a Arduino?

Other versions of the library you linked provide examples.