Code covered by the BSD License  

Highlights from
reed solomon code

reed solomon code

by

 

24 Dec 2010 (Updated )

everything about RS generation and generation polynomial and encoding and syndrome

[Y]=GF(m,X)
function [Y]=GF(m,X)
%galois field generation
N=2^(m);
Y(2:m+1,1:m)=fliplr(eye(m,m));
Yp=Y(m+1,1:m);
for i=1:N-(m+1)
if Yp(1)==0
    Yn(m)=0;
    Yn(1:m-1)=Yp(2:m);
else
       Yn(m)=1;
    for j=1:m-1   
        Yn(j)=xor(Yp(j+1),X(j+1));
    end
end
       Y(m+1+i,:)=Yn;
       Yp=Yn;
end

Contact us