You are on page 1of 1

AIM:TO IMPLEMENT THE SHUR ALGORITHM USING MATLAB.

R=[5 4 3 2 1];
[nrows,ncols]= size(R);
for c=1:ncols,
A=R(:,c).';
G=[0 A(2:nrows); A(1:nrows)];

for m=2:nrows;
G(2,:)=[0 G(2,1:nrows-1)];
by one
K(m-1,c)=-G(1,m)/G(2,m);
G=[1 K(m-1,c); conj(K(m-1,c)) 1]*G;
end
E(c,1)=G(2,end);
end
disp('reflection coefficients are ')
disp(K)

reflection coefficients are


0.2500
0.5000
0.3333

You might also like