function g = hamming84_g ( )

%*****************************************************************************80
%
%% hamming84_g() returns the Hamming (8,4) code generation matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 July 2018
%
%  Author:
%
%    John Burkardt
%
%  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


