function rubber_band_ode_test ( )

%*****************************************************************************80
%
%% rubber_band_ode_test solves the rubber band ODE using ode45.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    12 November 2020
%
%  Author:
%
%    Original Python version by John D Cook.
%    This MATLAB version by John Burkardt
%
  addpath ( '../rubber_band_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rubber_band_ode_test:\n' )
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve rubber_band_ode using ode45.\n' );

  [ a, b, lam, mu, t0, y0 ] = rubber_band_parameters ( );

  f = @ rubber_band_deriv;
  tspan = [ t0, 100.0 ];
  
  [ t, y ] = ode45 ( f, tspan, y0 );
%
%  Plot the result.
%
  plot ( t, y(:,1), 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y(t) -->' );
  title ( 'ode45: rubber band ODE' );
  filename = 'rubber_band_ode.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rubber_band_ode_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../rubber_band_ode' );

  return
end
