earth_moon_orbit_va​​riable_timesteps

Versión 1.1.1 (3,91 KB) por Aryeh Laks
Simulation of projectile motion using orbital mechanics. Note: must also be used with earth_moon_orbit_ode45.
92 Descargas
Actualizado 6 jun 2019

Ver licencia

Note: should 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 the Classical 4th Order Runge-Kutta Method and Euler's Method and how it compares to Matlab's built-in function, ode45.

See also https://www.academia.edu/38905594/Orbital_Simulation for a PowerPoint presentation that explains the math behind the Orbital Simulation

Citar como

Aryeh Laks (2025). earth_moon_orbit_va​riable_timesteps (https://es.mathworks.com/matlabcentral/fileexchange/69476-earth_moon_orbit_va-riable_timesteps), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.1

Gives an option not to download earth_moon_orbit_ode45. Graphics updated. More comments added. Other small changes made

1.1.0

The program now uses the 4th Order Runge-Kutta Method as its main method. The if-structure was discarded in favor of using a constant divided by the changing velocity to create the changing time-step. ode45 was added in. Graphics were updated

1.0.1

This version is in 3D. The circles representing the Earth and the Moon were replaced by spheres. Certain variables were pulled out of loop and were created separately. A math mistake in calculating the displacement was discovered and fixed.

1.0.0