Closest Approach Between Two Earth Satellites

Determine closest approach between two Earth satellites in circular or elliptical orbits.
14 Downloads
Updated 19 Feb 2025

View License

This submission describes two MATLAB scripts that can be used to determine closest approach conditions between two satellites in circular or elliptical Earth orbits. Each script uses Brent’s one-dimensional minimization algorithm to calculate geometric close approach conditions. In the first script (ca2sats1) the orbits of both satellites are propagated using Kozai’s J2 method. In the second script (ca2sats2) the orbits of both satellites are propagated using an RKF78 numerical integration method which also includes the oblateness term J2 in the first-order orbital equations of motion.
These scripts create a simple text file of the results along with a tiff graphics file of the close approach distance as a function of the elapsed simulation time.

Cite As

David Eagle (2025). Closest Approach Between Two Earth Satellites (https://www.mathworks.com/matlabcentral/fileexchange/180081-closest-approach-between-two-earth-satellites), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
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
1.1.0

Added a second MATLAB script (ca2sats2) that determines closest approach using numerical integration of the orbital equations of motion.

1.0.0