Clear Filters
Clear Filters

I want to find the eigenvectors of a matrix corresponding to imaginary eigenvalues.

2 views (last 30 days)
Using
[V, D]=eig(A)
the eigenvectors V correspond to eigenvalues which could be real or complex. But I want to know if it's possible to find V correspoindg to imaginary eigenvalues only. Thanks.

Accepted Answer

Bruno Luong
Bruno Luong on 19 Sep 2023
Use imag function
A=rand(5);
[V,d]=eig(A,'vector');
iscmplx=imag(d)~=0
iscmplx = 5×1 logical array
0 0 1 1 0
d=d(iscmplx)
d =
0.0216 + 0.2183i 0.0216 - 0.2183i
V=V(:,iscmplx) % corresponding eigen vectors (in each column)
V =
0.2708 - 0.4562i 0.2708 + 0.4562i -0.5843 + 0.0000i -0.5843 + 0.0000i 0.0655 - 0.1415i 0.0655 + 0.1415i 0.3705 - 0.0515i 0.3705 + 0.0515i -0.0052 + 0.4614i -0.0052 - 0.4614i

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!