The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: e, n, u = ecef2enuv (u, v, w, lat, lon)
Function File: e, n, u = ecef2enuv (u, v, w, lat, lon, angleUnit)

Convert vector projection UVW (ECEF coordinate frame) to local ENU (East, North, Up) coordinates.

Inputs:

## u, v, w:

vector components in ECEF coordinate frame (length). All these inputs must have the same dimensions (scalar, vector or nD array).

lat, lon:

geodetic latitude and longitude (angle, default = degrees). If non-scalar the dimensions should match those of the first three inputs.

angleUnit:

string for angular units (’degrees’ or ’radians’, case-insensitive, just the first character will do). Default is ’degrees’.

Outputs:

e, n, u:

East, North, Up cartesian coordinates in same length units (and dimensions) as first three inputs.

Examples:

[e, n, u] = ecef2enuv (200, 300, 1000, 45, -45)
e =  353.55
n =  757.11
u =  657.11

With radians

[e, n, u] = ecef2enuv (200, 300, 1000, pi/4, -pi/4, "r")
e =  353.55
n =  757.11
u =  657.11

See also: enu2ecefv, ecef2enu, ecef2geodetic, ecef2ned, ecef2enu, referenceEllipsoid.

Package: mapping