function humps_plot_matlab ( )

%*****************************************************************************80
%
%% humps_plot_matlab() plots y=humps(x).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 September 2024
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_plot_matlab():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Plot Bulgarian population over time.\n' );

  xmin = 0.0;
  xmax = 2.0;
  xnum = 101;
  x = linspace ( xmin, xmax, xnum );

  y = 1.0 ./ ( ( x - 0.3 ).^2 + 0.01 ) ...
    + 1.0 ./ ( ( x - 0.9 ).^2 + 0.04 ) - 6.0;

  plot ( x, y, 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- x -->' );
  ylabel ( '<-- y=humps(x)-->' );
  title ( 'y = humps(x)' );
%
%  Save graphics in a file.
%
  filename = 'humps_plot_matlab.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'humps_plot_matlab():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end
function timestamp ( )

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

  return
end

