function g = hamming84_g ( )

%*****************************************************************************80
%
%% HAMMING84_G returns the Hamming (8,4) code generation matrix.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    03 July 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Output, real G(8,4), the Hamming (8,4) G matrix.
%
  g = [ ...
    1, 0, 0, 0; ...
    0, 1, 0, 0; ...
    0, 0, 1, 0; ...
    0, 0, 0, 1; ...
    0, 1, 1, 1; ...
    1, 0, 1, 1; ...
    1, 1, 0, 1; ...
    1, 1, 1, 0 ];

  return
end


