Function File: C = egolayenc (M)

Encode with Extended Golay code.

The message M, needs to be of size Nx12, for encoding. We can encode several messages, into codes at once, if they are stacked in the order suggested.

The generator used in here is same as obtained from the function egolaygen. Extended Golay code (24,12) which can correct up to 3 errors.

msg = rand (10, 12) > 0.5;
c = egolayenc (msg)

See also: egolaygen, egolaydec.

Package: communications