I need help displaying the eigenvalue after each iteration
조회 수: 2 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!