PDF user’s manual and source code for a MATLAB script named demo_hyper that can be used to calculate C3 (twice the specific (per unit mass) orbital energy), RLA (the right ascension) and DLA (declination) of the asymptote of a hyperbolic trajectory. The script can use both Cartesian state vector (position and velocity vectors) and classical orbital elements as the data source.
This computer program assumes that the hyperbolic targets, state vector and classical orbital elements are all in the same Earth-centered-inertial (ECI) coordinate system.
David Eagle (2020). A MATLAB Script for Computing Hyperbolic Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/38886-a-matlab-script-for-computing-hyperbolic-coordinates), MATLAB Central File Exchange. Retrieved .
Does anybody know why the true anomaly calculation here on pg. 5 of the .pdf explaination is calculated as theta_inf = acos(-1/e) instead of theta_inf = acos(1/e)?
All the information I've found about calculating true anomaly during a hyperbolic orbit has a positive 1/e within acos.
Updated user's manual. Added interactive features to the MATLAB script.