ControlAngles3D:

--------------------------------------------------------------------------
   Computes the control angles for a 3D problem given the costates of the
   velocity vector. For a demo type

   ControlAngles3D

   The demo will enter a random costate vector and output the solution error.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [alpha, beta, u] = ControlAngles3D( x, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x           (3,:)   State vector [x;lambda]
   d           (1,1)   Datastructure

   -------
   Outputs
   -------
   alpha       (1,:)   Angle between the normal to the radius vector and thrust vector
   beta        (1,:)   Angle between the xy-plane and the thrust vector
   u           (1,:)   Unit vectors

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

Children:

Sail: OrbitDynamics/RHSEquinoctial