PToSMA:

Path: Orbit/OrbitMechanics

% Compute the semi-major axis from an orbit period or mean motion.
   The default central body is the Earth.
--------------------------------------------------------------------------
   Form:
   a = PToSMA( p, mu, type )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   p            (1,1) or (6,1)  Period or mean motion
   mu           (1,1)           Gravitational parameter (default = 3.98600436e5)
   type         (1,1)           Specify type of units. Either
                                   (1)   Period in seconds
                                   (2)   Rate in revolutions per day
                                   (3)   Rate in rad/sec

   -------
   Outputs
   -------
   p            (1,1)           Period

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

Back to the Orbit Module page