Interplanetary, patched-conic gravity assist - OTB version

Version 1.1.1 (16.1 MB) by David Eagle
A MATLAB Script for Interplanetary Patched-Conic, Single Gravity-Assist Trajectory Design, Analysis and Optimization


Updated 18 Jan 2022

View License

PDF document and a MATLAB script called flyby_matlab_otb that can be used to design and optimize interplanetary trajectories that include a single gravity assist maneuver. The user specifies the launch, flyby and destination planets, and the desired flyby altitude. The algorithm also requires initial guesses for the launch, flyby and arrival calendar dates. This script searches for a patched-conic gravity-assist trajectory that satisfies the flyby mission constraints (V-infinity matching and user-defined flyby altitude) and minimizes the launch, arrival or total impulsive delta-v for the mission. The type of delta-v optimization is specified by the user.

Cite As

David Eagle (2023). Interplanetary, patched-conic gravity assist - OTB version (, MATLAB Central File Exchange. Retrieved .

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

Updated to use MICE routines and DE421 ephemeris


Minor editing and rename of objective and constraints functions.