AsteroidTrajectory:

--------------------------------------------------------------------------
   Example problem from AIAA challenge.
   The asteroid in question should hit the Earth.
   Demonstrates an n-body gravity model using point masses. There is an 
   option to include the perturbations or to integrate with only the sun.  
   The perturbations bring the final position from an 883 Earth radii miss
   distance to only 5 radii. The perturbations include the major planets, 
   except Pluto, and the moon.

   Has a built-in RHS function combining ephemeris with gravity.
   The plots at the end can be replicated with the function output.

   Since version 7.
--------------------------------------------------------------------------
   Form:
   [xPlot,tPlot,rEarth,rMars] = AsteroidTrajectory( perturbations )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   perturbations    (1,1)    1 to include perturbations, 0 otherwise

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