function pentomino_matrix_test ( )

%*****************************************************************************80
%
%% PENTOMINO_MATRIX_TEST tests PENTOMINO_MATRIX.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 June 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PENTOMINO_MATRIX_TEST\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  PENTOMINO_MATRIX returns a 0/1 matrix representing a pentomino.\n' );

  for k = 1 : 12
    name = pentomino_name ( k );
    p = pentomino_matrix ( name );
    [ m, n ] = size ( p );
    label = sprintf ( '  %s pentomino (%d,%d):', name, m, n );
    pentomino_print ( m, n, p, label );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PENTOMINO_MATRIX_TEST\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

