Communications Toolbox | ![]() ![]() |
Decode an ASCII file that was encoded using Reed-Solomon code
Syntax
Description
This function is the inverse process of the function rsencof
in that it decodes a file that rsencof
encoded.
rsdecof(file_in,file_out)
decodes the ASCII file file_in
that was previously created by the function rsencof
using an error-correction capability of 5. The decoded message is written to file_out
. Both file_in
and file_out
are string variables.
rsdecof(file_in,file_out,err_cor)
is the same as the first syntax, except that err_cor
specifies the error-correction capability for each block of 127 codeword characters. The message length is 127 - 2 *err_cor
. The value in err_cor
must match the value used in rsencof
when file_in
was created.
Examples
An example is on the reference page for rsencof
.
See Also
rsencof
![]() | rsdec | rsenc | ![]() |