Runge-Kutta 4th Order Orbit Simulation
In celestial mechanics numerical methods are widely used to solve differential equations. In this code, Runge-Kutta 4th Order method is used for numerical integration of equation of orbital motion according to Newton's law of gravitation to simulate object's trajectory around the Earth.
Inputs: Position and Velocity vector (x,y,z,vx,vy,vz)
OR
Keplerian Elements (a, e, i, Omega, w, M)
h = Step Size
steps = Number of Step
Output: Propagated Satellite PV Vector in ECI Frame of Reference
Call: [X_RK] = RK_4(X,h,steps)
Cite As
Ozan Kilic (2025). Runge-Kutta 4th Order Orbit Simulation (/matlabcentral/fileexchange/70076-runge-kutta-4th-order-orbit-simulation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Aerospace and Defense > Aerospace Blockset > Reference Applications >
- Engineering > Aerospace Engineering > Satellite and Orbital Mechanics >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |