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

E=encoder(I,G,Y);
function E=encoder(I,G,Y);
%Reed-Solomon encoder
L=I;
G=G(2:size(G,2));
I=fliplr(I);
a=length(I);
b=length(G);
E(1,1:b)=1;
 for m=1:a
     FB=add(I(m),E(b),Y);
 for i=1:a
 for j=1:b
     GR(j)=mult(FB,G(j),Y);
 end
 end
 for k=2:b
     GRS(k-1)=add(E(k-1),GR(k),Y);
 end

     E=[GR(1) GRS(1:b-1)];
     
 end
E=[E L];

Contact us