This change has been incorporated into the documentation in Release 2009a (R2009a). For previous releases, read below for any additional information.
The ability to use erasure information with the RSDEC function is not available in Communications Toolbox.
To work around this limitation, you can use the FEC.RSDEC decoder object from the Communications Toolbox, instead of the RSDEC function. The following example demonstrates how this object can be used with erasure information, with m = 3, k = 5, n = 7:
n = 7; k = 5;
coder = fec.rsenc(n,k);
msg = [0 1 2 3 4]'
code = encode(coder,msg)
decoder = fec.rsdec(coder);
code(end) = 1;
code(end-1) = 0;
erasures = [0 0 0 0 0 1 1]';
[decoded,cnumerr,ccode] = decode(decoder,code);
[decoded_with_erasures,cnumerr,ccode] = decode(decoder,code,erasures);
More details on the FEC.RSDEC object are available at the following link:
Furthermore, if you have the Communications Blockset (a Simulink block library), you can also perform Reed Solomon decoding with erasure information in the Simulink environment. Examples are provided at the following documentation link: