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

A=add(a,b,Y);
function A=add(a,b,Y);
% Add two elements over Galois field
[m n]=size(Y);
Z=xor((Y(a,1:n)),(Y(b,1:n)));
I=ISMEMBER(Y,Z,'rows');
if a==1 && b==1;
    F=1;
end


sum=1;
for i=1:m
      if I(i,1)==0;
            sum=sum+1;
      else I(i,1)==1;
          F=sum; 
        end
end

A=F;




Contact us