golaycodec

encode/decode a binary array using the Golay code with error correction

You are now following this Submission

% Example: encode a message, add transmission errors and decode
x=round(rand(1,12)); % random message
y=golaycodec(x); % encode
err=zeros(1,23);err(ceil(23*rand(1,3)))=1; % 3 random errors
y1=xor(y,err); % add transmission error
[x1,err1]=golaycodec(y1); % decode
% should have x1==x and err1==err

Cite As

Ben Petschel (2026). golaycodec (https://se.mathworks.com/matlabcentral/fileexchange/23341-golaycodec), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Data Import and Network Parameters in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

code cleanup; changed encoding polynomial

1.1.0.0

added support for extended Golay codes

1.0.0.0