2

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?

alexey
  • 8,360
  • 14
  • 70
  • 102

1 Answers1

2

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

Oliver Charlesworth
  • 267,707
  • 33
  • 569
  • 680
  • I am trying to understand how MATLAB generates Hamming code. I think there is a difference between MATLAB's implementation and this explanation (https://www.tutorialspoint.com/hamming-code-for-single-error-correction-double-error-detection) – yildizabdullah Dec 11 '19 at 06:09