Orbital Mechanics Library

A compilation of all of the functions I wrote for my orbital mechanics class

You are now following this Submission

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 (2026). Orbital Mechanics Library (https://se.mathworks.com/matlabcentral/fileexchange/13439-orbital-mechanics-library), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

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.

1.1.0.0

- 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.

1.0.0.0

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.