Introduction - If you have any usage issues, please Google them yourself
The following matlab program to achieve encoding and decoding, the program notes are very clear, in which algorithms are used, reference is S. Lin and DJ Costello, Error Control Coding, 2nd ed. New York: Prentice Hall, 2004.. This book the above algorithm.