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.
|
| Updates |
| 29 Apr 2009 |
added support for extended Golay codes |
|
Contact us at files@mathworks.com