earth_moon_orbit_an​imation

Simulation of projectile motion and orbital mechanics using both the Classical 4th Order Runge-Kutta method and Euler's Method

You are now following this Submission

Note: must also be used with earth_moon_orbit_ode45 at https://www.mathworks.com/matlabcentral/fileexchange/71313-earth_moon_orbit_ode45

Depicts the path in 3 dimensions of a projectile being affected by the gravity of the Earth and the Moon using both the Classical 4th Order Runge-Kutta Method and Euler's Method. A special thank you to Professor Mark Edelen who taught the Mat-lab Programming & Numerical Methods class at Howard Community College. He created a program similar to this that simulated Apollo 13's flight path which inspired this program, and believed in my ability to create such a program.

See also https://www.mathworks.com/matlabcentral/fileexchange/69476-earth_moon_orbit_va-riable_timesteps for a similar version of this program

Cite As

Aryeh Laks (2026). earth_moon_orbit_animation (https://www.mathworks.com/matlabcentral/fileexchange/70598-earth_moon_orbit_animation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Math error was found and corrected. ode45 was added in to check the results of the other methods. Graphics were updated.

1.0.0