I need help displaying the eigenvalue after each iteration
1 回表示 (過去 30 日間)
古いコメントを表示
回答 (1 件)
Torsten
2023 年 11 月 29 日
A = rand(10);
ATA = A'*A;
x0 = rand(10,1);
for iter = 1:10
y = ATA*x0;
x = y/norm(y);
x0 = x;
y
end
largest_eigenvalue_approx = x'*ATA*x
max(eig(ATA))
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
