function rcm_test ( )

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

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rcm_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test rcm().\n' );

  rcm_test01 ( );
  rcm_test02 ( );
  rcm_test03 ( );
  rcm_test04 ( );
  rcm_test05 ( );
  rcm_test06 ( );
  rcm_test07 ( );
  rcm_test08 ( );
  rcm_test09 ( );

  rcm_test10 ( );
  rcm_test11 ( );
  rcm_test12 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rcm_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../rcm' );

  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

