RungeKutta4thOrder:

Path: Missions/LunarMission

% Fourth order Runge-Kutta, compatible with ode113. 
 Called function is of the form:

   Fun(t,x,varargin)

 Accepts optional arguments that are passed through to Fun. 
--------------------------------------------------------------------------
   Form:
   x = RungeKutta4thOrder( Fun, x, t, h, varargin )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   Fun                Function    Fun(x,{t,...})
   x                  State (column vector)
   t                  Current time
   h                  Time step
   p1...              Optional arguments

   -------
   Outputs
   -------
   x                  Updated state

--------------------------------------------------------------------------

Back to the Missions Module page