n=length(a);x0=diag(ones(n));k=1x=a*x0while norm(x-x0)>eps k=k+1 q=x; y=x/maxnorm(x) x=a*y; x0=q;endmt=maxnorm(x)my=y[main1.m]a=[3 2;4 5]maxtr(a,0.0001)[invmaxtr.m]function [mx,mt,my]=invmaxtr(a,eps)