| Contents | Index |
rsdecof(file_in,file_out); rsdecof(file_in,file_out,err_cor);
Warning This function is obsolete and may be removed in the future. We strongly recommend that you use the comm.RSDecoder System object instead. |
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.
Note If the number of characters in file_in is not an integer multiple of 127, the function appends char(4) symbols to the data it must decode. If you encode and then decode a file using rsencof and rsdecof, respectively, the decoded file might have char(4) symbols at the end that the original file does not have. |
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.
An example is on the reference page for rsencof.

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 |