Code covered by the BSD License
-
RS_ENC4(code,n,k,g,field)
-
RS_E_E_DEC(received, erasures...
Check for decoding failures
-
gfdiff(polynomial)
-
gfpow(value,p,n)
-
gfsubstitute(polynomial,value...
use: gfsubstitute(polynomial,value,terms,n,field)
-
massey_berlekamp_M2(n,k,t,S,f...
http://www.ee.ucla.edu/~matache/rsc/node8.html#SECTION00051000000000000000
-
Errors_And_Erasures_Test.m
-
View all files
from
Reed-Solomon errors-and-erasures decoder
by Jaco Versfeld
An errors-and-erasures decoder for Reed-Solomon codes based on the Massey-Berlekamp algorithm
|
| gfdiff(polynomial)
|
function diff = gfdiff(polynomial)
%use: diff = gfdiff(polynomial)
%Differentiate polynomial with respect to x
l = length(polynomial);
for cc = 2:l
%cc-1 represents the power of x
if mod(cc-1,2) == 0 %all the even powers are zero because of GF(2)
diff(cc-1) = -Inf;
else
diff(cc-1) = polynomial(cc);
end
end
|
|
Contact us at files@mathworks.com