function ring_data_test ( )

%*****************************************************************************80
%
%% ring_data_test() tests ring_data().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../ring_data' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ring_data_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ring_data() creates, plots, and saves ring data.\n' );

  ring_num = 3;
  ring_pop = [ 40, 60, 100 ];
  ring_rad1 = [ 1.0, 6.0, 9.0 ];
  ring_rad2 = [ 3.0, 7.0, 10.0 ];
  
  ring_input_print ( ring_num, ring_pop, ring_rad1, ring_rad2 );

  [ m, p, id ] = ring_data_generate ( ring_num, ring_pop, ring_rad1, ...
    ring_rad2 );

  ring_data_print ( m, p, id );

  ring_data_plot ( m, p, id );

  ring_data_write ( m, p, id, 'ring_data_test.dat' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ring_data_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../ring_data' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

