% -*- texinfo -*- % @deftypefn {Function File} {} egolayenc (@var{M}) % % % Given @var{M}, encode M using the Extended Golay code. % % The message @var{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 G used in here is same as obtained from the % function egolaygen. Extended Golay code (24,12) which can correct % upto 3 errors. % % @example % @group % M=(rand(10,12)>0.5); % C=egolayenc(M) % % @end group % @end example % % @end deftypefn % @seealso{egolaygen,egolaydec}