function g = hamming74_g ( )

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


