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

S=syndrome(E,Er,t,Y)
function S=syndrome(E,Er,t,Y)
%Create syndrome vector for Reed-Solomon code.
%length E must = length Er
for i=1:length(E)
    r(i)=add(E(i),Er(i),Y);
end
 for k=3:2*t+2
     M=powmult(k,r,Y);
     synd_x1=2;
     for j=2:length(r)   
        synd_x1 = add(mult(r(j),M(j),Y),synd_x1,Y);
     end
       S(k-2)=synd_x1;
 end
 

Contact us