function ppma_io_test01 ( )

%*****************************************************************************80
%
%% ppma_io_test01() tests ppma_example(), ppma_write().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 May 2011
%
%  Author:
%
%    John Burkardt
%
  ncol = 300;
  nrow = 300;
  file_name = 'ppma_io_test01.ascii.ppm';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ppma_io_test01():\n' );
  fprintf ( 1, '  ppma_example() sets up sample ASCII PPM data.\n' );
  fprintf ( 1, '  ppma_write() writes an ASCII PPM file.\n' );

  [ r, g, b ] = ppma_example ( nrow, ncol );

  ppma_write ( file_name, r, g, b );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Wrote the header and data for %s\n', file_name );
  fprintf ( 1, '  Number of rows of data =    %d\n', nrow );
  fprintf ( 1, '  Number of columns of data = %d\n', ncol );

 return
end
