function risk_matrix_test ( )

%*****************************************************************************80
%
%% risk_matrix_test() tests risk_matrix().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    02 January 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../risk_matrix' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'risk_matrix_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test risk_matrix()\n' );
%
%  Evaluate the transition matrix for RISK.
%
  a = risk_transition_matrix ( );
%
%  Use spy to draw an image of the matrix.
%
  spy ( a );
  title ( 'The RISK Transition Matrix' )

  filename = 'risk_transition_matrix_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved in "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'risk_matrix_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../risk_matrix' );

  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

