function roessler_ode45 ( )

%*****************************************************************************80
%
%% roessler_ode45() uses ode45() to solve roessler_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 April 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'roessler_ode45()\n' );
  fprintf ( 1, '  Use ode45() to solve roessler_ode().\n' );
%
%  Data
%
  [ alpha, beta, mu, t0, y0, tstop ] = roessler_parameters ( );
%
%  Compute the approximate solution.
%
  f = @ roessler_deriv;
  tspan = [ t0, tstop ];

  [ t, y ] = ode45 ( f, tspan, y0 );

  n = size ( t, 1 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of variable size steps = %d\n', n );
%
%  Plot the data.
%
  clf ( );
  plot3 ( y(:,1), y(:,2), y(:,3), 'linewidth', 2 );
  grid ( 'on' );
  xlabel ( '<-- X -->' );
  ylabel ( '<-- Y -->' );
  zlabel ( '<-- Z -->' );
  title ( 'roessler_ode(): ode45()' );
  filename = 'roessler_ode45.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s\n', filename );

  return
end

