How do i find eigen vector corresponding to imaginery eigen value
33 views (last 30 days)
Show older comments
Lokesh
on 5 Nov 2024 at 4:32
Edited: Walter Roberson
on 5 Nov 2024 at 5:07
[V, D] = eig(A)
The eigenvectors in V correspond to eigenvalues that can be real or complex. However, I am interested in finding the eigenvectors that correspond specifically to purely imaginary eigenvalues. Is there a way to achieve this?T
0 Comments
Accepted Answer
Gayatri
on 5 Nov 2024 at 4:41
Hi Lokesh,
You can use 'imag' function to find the eigenvectors that correspond specifically to purely imaginary eigenvalues.
A = rand(5);
[V,D] = eig(A,'vector');
hasComplexPart = imag(D)~=0;
D = D(hasComplexPart)
V = V(:,hasComplexPart)
Please refer the below documentation for 'imag' function: https://www.mathworks.com/help/symbolic/sym.imag.html
More Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!