CRTBP2kms:

Path: Orbit/OrbitCoord

% Scales CRTBP Jacobi coordinates to km and sec
 Scales coordinates from Jacobi coordinates of the Circular Restricted Three
 Body Problem to units of kilometers and seconds
--------------------------------------------------------------------------
   Form:
   [stateOut,sec2tu] = CRTBP2kms(stateIn,distanceUnit,muPrimary,muSecondary);
--------------------------------------------------------------------------

   ------
   InputsP
   ------
   stateIn        (1,6)  Initial state vector 
   distanceUnit    (1)   Distance between Primary and Secondary bodies
                         (km)
   muPrimary       (1)   Gravitational Parameter of Primary body
   muSecondary     (1)   Gravitational Parameter of Secondary body
   
   -------
   Outputs
   -------
   stateOut       (1,6)  Output state vector
   sec2tu          (1)   Scaling factor for time

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

Back to the Orbit Module page