Code covered by the BSD License
 RS_ENC4(code,n,k,g,field)
 RS_E_E_DEC(received, eras...Check for decoding failures
 gfdiff(polynomial)
 gfpow(value,p,n)
 gfsubstitute(polynomial,v...use: gfsubstitute(polynomial,value,terms,n,field)
 massey_berlekamp_M2(n,k,t...http://www.ee.ucla.edu/~matache/rsc/node8.html#SECTION00051000000000000000
 Errors_And_Erasures_Test.mReedSolomon Errors and Erasures Decoding

View all files
ReedSolomon errorsanderasures decoder
by
Jaco Versfeld
06 Apr 2009
An errorsanderasures decoder for ReedSolomon codes based on the MasseyBerlekamp algorithm

gfdiff(polynomial)

function diff = gfdiff(polynomial)
%use: diff = gfdiff(polynomial)
%Differentiate polynomial with respect to x
l = length(polynomial);
for cc = 2:l
%cc1 represents the power of x
if mod(cc1,2) == 0 %all the even powers are zero because of GF(2)
diff(cc1) = Inf;
else
diff(cc1) = polynomial(cc);
end
end


Contact us