function lorenz96_ode23 ( )

%*****************************************************************************80
%
%% lorenz96_ode23() uses ode23 to solve lorenz96_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 September 2025
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lorenz96_ode23\n' );
  fprintf ( 1, '  Use ode23() to solve lorenz96_ode().\n' );
%
%  Get the parameter values.
%
  [ n, force, perturb, t0, y0, tstop ] = lorenz96_parameters ( );

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

  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,1), y(1,2), y(1,3), 'g.', 'markersize', 20 );
    plot3 ( y(:,1), y(:,2), y(:,3) );
    plot3 ( y(end,1), y(end,2), y(end,3), 'r.', 'markersize', 20 );
  hold ( 'off' );
  grid ( 'on' );
  xlabel ( '<-- Y(1) -->' );
  ylabel ( '<-- Y(2) -->' );
  zlabel ( '<-- Y(3) -->' );
  title ( 'lorenz96\_ode(): ode23()' );
  filename = 'lorenz96_ode23.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s\n', filename );

  return
end

