function g = hamming74_g ( )

%*****************************************************************************80
%
%% HAMMING74_G returns the Hamming (7,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(7,4), the Hamming (7,4) G matrix.
%
  g = [ ...
    1, 1, 0, 1; ...
    1, 0, 1, 1; ...
    1, 0, 0, 0; ...
    0, 1, 1, 1; ...
    0, 1, 0, 0; ...
    0, 0, 1, 0; ...
    0, 0, 0, 1 ];

  return
end


