DiscreteHills:

--------------------------------------------------------------------------
   Computes the state trajectory (xS) of a satellite given the initial state (x0)
   and the commanded accelerations (aC). Uses a discretized state space model
   of Hills equations, which is defined by the orbit rate (w0). "LinOrb.m" is called 
   with w0 to generate the plant, and the discretization is done using "CDZOH.m". 

   Since version 7.
--------------------------------------------------------------------------
   Form:
   xS = DiscreteHills( x0, w0, aC, dT );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x0                (6,1)   Initial state
   w0                 (1)    Reference orbit rate (rad/sec)
   aC                (3,n)   Commanded accelerations
   dT                 (1)    Sampling time for zero-order hold 

   -------
   Outputs
   -------
   xS                (6,n+1)  State trajectory of the satellite in Hill's frame

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

Children:

Orbit: RHSOrbit/LinOrb