Skip to Main Content Skip to Search
Product Documentation

rsdecof - Decode ASCII file encoded using Reed-Solomon code

Syntax

rsdecof(file_in,file_out); rsdecof(file_in,file_out,err_cor);

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

How To

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS