function svd_faces_test ( )

%*****************************************************************************80
%
%% svd_faces_test() tests svd_faces().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 December 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../svd_faces' );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'svd_faces_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  svd_faces() implements an SVD-based projection method for facial analysis.\n' );
%
%  Count the lines in a file.
%
  line_count_test ( );
%
%  Show a numeric array as a gray scale image.
%
  close all;
  imshow_numeric_test ( );
  pause ( 5 );
%
%  Read a PGM file.
%
  close all;
  pgm_read_test ( );
  pause ( 5 );
%
%  Display a PGM image.
%
  close all;
  pgm_display_test ( );
  pause ( 5 )
%
%  Pack a number of PGM images into a single array.
%
  close all;
  pgms_pack_test ( );
  pause ( 5 );
%
%  Compute SVD vectors for a list of images.
%
  close all;
  filelist = 's01_list.txt';
  n = 5;
  svd_vectors_test ( filelist, n );
  pause ( 5 );
%
%  Project a PGM image.
%
  close all;
  pgm_project_test ( );
  pause ( 5 );
%
%  Project a PGM image and show all projections in one plot.
%
  close all;
  pgm_project_display_test ( );
  pause ( 5 );
%
%  Project all PGM images, using a limited number of vectors.
%
  close all;
  pgm_project_display_test ( );
  pause ( 5 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'svd_faces_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  rmpath ( '../svd_faces' );

  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

