MATLAB Resources
Helpful Hints
- Things ENGG1801 did not teach you: A series of helpful commands and ways of going about coding things in MATLAB that ENGG1801 did not teach or forbade.
 - 
runfirst.m: A function to turn the axes of figures to the \(\LaTeX\) interpreted version. Run this at the beginning of code afterclear,clc,close alletc. 
Space Engineering Functions
- 
    
Keplerian coordinates to cartesian coordinates: This code is used to convert Keplerian elements to cartesian in orbital mechanics. I find this an easy starting point when starting simulations already in space.
 - 
    
Eccentric anomaly solver: This code accompanies the above and solves the Kepler equation ( \(M = E-e\sin E\) ) for the eccentric anomaly.
 - 
    
Two Line Element Reader: This code reads a formatted two-line element of a spacecraft and returns key orbital elements for simulation.