The transformation matrix from the local orbital to the body frame, calculated from attitude data generated in Simulink is: