golaycodec
Versión 1.2.0.0 (4,2 KB) por
Ben Petschel
encode/decode a binary array using the Golay code with error correction
% 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
Citar como
Ben Petschel (2024). golaycodec (https://www.mathworks.com/matlabcentral/fileexchange/23341-golaycodec), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2007b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Data Import and Network Parameters en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.