RHSOrbit:

Path: SC/BasicOrbit

% Right hand side for a simple orbit.
 External disturbances may be passed in via the data structure.
--------------------------------------------------------------------------
   Form:
      d = RHSOrbit;           % data structure
   xDot = RHSOrbit( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x   (6,1) Orbital state [r;v] in km and km/s
   t   (1,1) Time (unused)
   d	  (.)   Data structure
              .mu    (1,1) Gravitational constant
              .a     (3,1)	Acceleration (km/s2)

   -------
   Outputs
   -------
   xDot (6,1) d[r;v]/dt

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

Children:

Math: Linear/Mag

Back to the SC Module page