


% -*- texinfo -*-
% @deftypefn {Function File} {} reedmullerenc (@var{MSG},@var{R},@var{M})
%
% Definition type construction of Reed Muller code,
% of order @var{R}, length @math{2^M}. This function
% returns the generator matrix for the said order RM code.
%
% Encodes the given message word/block, of column size k,
% corresponding to the RM(@var{R},@var{M}), and outputs a
% code matrix @var{C}, on each row with corresponding codeword.
% The second return value is the @var{G}, which is generator matrix
% used for this code.
%
% @example
% @group
% MSG=[rand(10,11)>0.5];
% [C,G]=reedmullerenc(MSG,2,4);
%
% @end group
% @end example
%
% @end deftypefn
% @seealso{reedmullerdec,reedmullergen}