function web_matrix_test ( )

%*****************************************************************************80
%
%% web_matrix_test() tests web_matrix().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 September 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../web_matrix' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'web_matrix_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test web_matrix()\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Process the "tiny" web matrix\n' );
  [ i, j, v ] = tiny_st ( );
  A = sparse ( i, j, v );
  power_rank ( A );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Process the "moler" web matrix\n' );
  [ i, j, v ] = moler_st ( );
  A = sparse ( i, j, v );
  power_rank ( A );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Process the "sauer" web matrix\n' );
  [ i, j, v ] = sauer_st ( );
  A = sparse ( i, j, v );
  power_rank ( A );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'web_matrix_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../web_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

