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

GA=GAMMA(A,S,t,Y)
function GA=GAMMA(A,S,t,Y)
% Error-evaluator polynomial ?(x) =?(x) S(x)   (mod   X^(2t+1))
S=fliplr(S);
for r=1:2*t 
    r1 = 2*t-r+1;
    r2 = min(r1+t,2*t);
    num = r2-r1+1;
    Sa(1:num) = S(r1:r2);
    M(1)=1;
    for j=1:num
        M=add(mult(A(j),Sa(j),Y),M,Y);
            G(r)=M;
        end
    end
GA=[2 G(1:2:2*t)];


Contact us