Orbital Mechanics Library

A compilation of all of the functions I wrote for my orbital mechanics class
Updated 1 Oct 2009

View License

There are 23 different functions performing basic orbital operations (Hohmann tx, inclination and node changes, orbital parameter conversions, ground tracks, orbit plotting, etc.). Some of these functions are still rough, so please provide feedback. These functions are basically how I did all of my homework. There are a few plotting functions that are "just for fun" i.e. I'm being a geek. Please e-mail me if you have problems, suggestions, comments, or snide remarks.

Cite As

Richard Rieber (2024). Orbital Mechanics Library (https://www.mathworks.com/matlabcentral/fileexchange/13439-orbital-mechanics-library), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Guidance, Navigation, and Control (GNC) in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Added features to some plotting functions, improved comments, added H1 lines, added capabilities of some functions to work with perfectly equatorial and/or circular orbits.

- Fixed a simple bug in KeplerCOE
- Changed input checking in elorb to accept 3x1 inputs.
- Re: Jo Man's comment. Yes, a dT of 0 yields a non-zero dR. This is due to error in Newton-Raphson iteration.

Updated plotorb. Added capability to orbit bodies other than Earth.

Updated nuFromTp and nuFromM to fix a gruesome error in the default tolerance from 10^8 rad to 10^-8 rad.