I need help displaying the eigenvalue after each iteration
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen

0 Kommentare
Antworten (1)
Torsten
am 29 Nov. 2023
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 Kommentare
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!