202powermethod

power method

You are now following this Submission

a=input("Enter matrix:");
x=input("Enter initial eigen value guesses:");
tol=input("Enter tolerance:");
n=length(a);
q=0;
error=10;
while error>tol
y=a*x;
k=max(y(:));
x(:)=y(:)/k;
error=abs(k-q);
q=k;
end
disp(k);

Cite As

raam (2026). 202powermethod (https://se.mathworks.com/matlabcentral/fileexchange/120638-202powermethod), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0