https://nl.mathworks.com/help/fusion/ref/compassangle.html
compassAngle - Navigational heading relative to north - MATLAB
This MATLAB function returns the compass angles in the north-east-down (NED) reference frame based on the orientations.
relative tonavigationalheadingnorthmatlab