function autocatalytic_ode23 ( )

%*****************************************************************************80
%
%% autocatalytic_ode23() uses ode23() to solve autocatalytic_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 September 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'autocatalytic_ode23()\n' );
  fprintf ( 1, '  autocatalytic_ode() solved by ode23().\n' );
%
%  Get the parameter values.
%
  [ alpha, beta, t0, wxyz0, tstop ] = autocatalytic_parameters ( );

  f = @ autocatalytic_deriv;
  tspan = [ t0, tstop ];
%
%  Compute the approximate solution at equally spaced times.
%
  [ t, y ] = ode23 ( f, tspan, wxyz0 );

  n = size ( t, 1 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of variable size steps = %d\n', n );
%
%  Plot the data.
%
  clf ( );
  hold ( 'on' );
    plot3 ( y(1,2), y(1,3), y(1,4), 'g.', 'markersize', 15 );
    plot3 ( y(end,2), y(end,3), y(end,4), 'r.', 'markersize', 15 );
    plot3 ( y(:,2), y(:,3), y(:,4), 'b-', 'linewidth', 1 );
    view ( 3 );
  hold ( 'off' );
  grid ( 'on' );
  xlabel ( '<-- X -->' );
  ylabel ( '<-- Y -->' );
  zlabel ( '<-- Z -->' );
  title ( 'autocatalytic\_ode() solved by ode23()' );
  filename = 'autocatalytic_ode23.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s\n', filename );

  return
end

