필터 지우기
필터 지우기

i had a problem on finding the diagonal values of on my eigen vector

조회 수: 2 (최근 30일)
a=[0 6 1 ; 5 7 8 ; 8 7 2]
a =
0 6 1
5 7 8
8 7 2
>> c=eig(a)
c =
15.4482 + 0.0000i
-3.2241 + 3.0363i
-3.2241 - 3.0363i
>> [V,D] = eig(a)
V =
Columns 1 through 2
0.3269 + 0.0000i 0.1351 - 0.5715i
0.7446 + 0.0000i 0.3232 + 0.3755i
0.5820 + 0.0000i -0.6401 + 0.0000i
Column 3
0.1351 + 0.5715i
0.3232 - 0.3755i
-0.6401 + 0.0000i
D =
Columns 1 through 2
15.4482 + 0.0000i 0.0000 + 0.0000i
0.0000 + 0.0000i -3.2241 + 3.0363i
0.0000 + 0.0000i 0.0000 + 0.0000i
Column 3
0.0000 + 0.0000i
0.0000 + 0.0000i
-3.2241 - 3.0363i
for(i=1:1:3)
z=A(i,j)
end

채택된 답변

Stalin Samuel
Stalin Samuel 2015년 10월 8일
if your problem is to extracting the diagonal elements z = diag(D) is your solution

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by