enu2truenorth#

[directionTN] = enu2truenorth(directionENU, dispout)

Description#

Convert mathematical direction (angle) from ENU (East North Up) coordinate system to compass direction with respect to true north

Inputs#

directionENU
Direction (angle) in ENU (East North Up) coordinate system between 0 and 360 (Degree)
If coordinate system is ENU, then x is East and y is North
dispout=’no’;
Define to display outputs or not (‘yes’: display, ‘no’: not display)
Note: inputs can be as a single value or a 1-D vertical array

Outputs#

directionTN
Direction (angle) in compass direction with respect to true north (Degree)
In true north coordinate system, wave comes from as:
0 degree: from north, 90 degree: from east, 180 degree: from south, 270 degree: from west

Examples#

[directionTN]=enu2truenorth(90,'yes');

[directionTN]=enu2truenorth([15;30;45;60;90],'no');

References#