Version 1.0.1 (3.58 KB) by Aryeh Laks
Simulation of projectile motion and orbital mechanics using both the Classical 4th Order Runge-Kutta method and Euler's Method
Updated 23 Apr 2019

View License

Note: must also be used with earth_moon_orbit_ode45 at

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 for a similar version of this program

Cite As

Aryeh Laks (2024). earth_moon_orbit_animation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

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