function tile_print ( m, n, p, label )

%*****************************************************************************80
%
%% tile_print() prints a calendar puzzle tile.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 August 2024
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N: the number of rows and columns in the representation.
%
%    integer P(MP,NP): a matrix representing the tile.  
%
%    string LABEL: a label to be printed first.  
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', label );
  fprintf ( 1, '\n' );
  for i = 1 : m
    fprintf ( 1, ' ' );
    for j = 1 : n
      fprintf ( 1, ' %d', p(i,j) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
