How to find an eigenvector

조회 수: 15 (최근 30일)
Petter André
Petter André 2022년 2월 23일
편집: KSSV 2022년 2월 23일
I have a regular 5x5 matrix and want to find the eigenvector, how do I do that?

채택된 답변

KSSV
KSSV 2022년 2월 23일
편집: KSSV 2022년 2월 23일
Read about the function eig.
A = magic(5) ;
[V,D] = eig(A) ;
vec = V
vec = 5×5
-0.4472 0.0976 -0.6330 0.6780 -0.2619 -0.4472 0.3525 0.5895 0.3223 -0.1732 -0.4472 0.5501 -0.3915 -0.5501 0.3915 -0.4472 -0.3223 0.1732 -0.3525 -0.5895 -0.4472 -0.6780 0.2619 -0.0976 0.6330
val = diag(D)
val = 5×1
65.0000 -21.2768 -13.1263 21.2768 13.1263

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by