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

2 次查看(过去 30 天)
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.

采纳的回答

Bruno Luong
Bruno Luong 2023-9-19
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by