Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

Bruno Luong
Bruno Luong le 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

Plus de réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by