Code covered by the BSD License  

Highlights from
golaycodec

Be the first to rate this file! 23 Downloads (last 30 days) File Size: 4 KB File ID: #23341

golaycodec

by Ben Petschel

 

18 Mar 2009 (Updated 29 Apr 2009)

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

| Watch this File

File Information
Description

% 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

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
24 Jan 2011 Joby Philip

WHAT IS THE INPUT OF THIS PROGRAM?
Mx12 STANDS FOR?
WHAT IS X,ENC,EXT? PLS ANSWER ME THE ABOVE DOUBTS .....

26 Jan 2011 Ben Petschel

This is all described in the help text.

Please login to add a comment or rating.
Updates
29 Apr 2009

added support for extended Golay codes

Tag Activity for this File
Tag Applied By Date/Time
golay Ben Petschel 18 Mar 2009 11:11:52
golay code Ben Petschel 18 Mar 2009 11:11:52
encode Ben Petschel 18 Mar 2009 11:11:52
decode Ben Petschel 18 Mar 2009 11:11:52
errorcorrecting code Ben Petschel 18 Mar 2009 11:11:52

Contact us at files@mathworks.com