matlaberror-correctionerror-detectionhamming-code

Hamming code in Matlab


I would like to build Hamming(15, 11) code with parity bit (SECDED) to correct 1 bit errors and detect 2-bit errors.

Are there any Matlab function that implement encoding and decoding of such code?


Solution

  • If you have the Communications Systems Toolbox, you can use the encode() and decode() functions.