MATLAB Calculating Total Eigenvalues in Matlab

AI Thread Summary
To calculate the total number of eigenvalues smaller than a specified value in MATLAB, one can use the following approach: first, compute the eigenvalues of the matrix A using the command E = eig(A). Then, identify the eigenvalues that are smaller than the specified threshold c by using the command F = find(abs(E) < c). Finally, the count of these eigenvalues can be obtained with size(F). This method applies to both real and complex eigenvalues, depending on the matrix A used in the calculation.
anahita
Messages
27
Reaction score
0
Hi.
How do you calculate Total eigenvalues smaller than a certain value in Matlab?
 
Physics news on Phys.org
Perhaps you could give a little more detail.
What is your application?
Are you working with real or complex eigenvalues?
By total, do you mean total number of eigenvalues...as in you are looking for a count?
If that is the case, I would do something like:
E = eig(A);
F = find(abs(E) < c);
size(F)
Where A is your matrix, and c is your "certain value".
 

Similar threads

Back
Top