Quantcast

Documentation Center

  • Trial Software
  • Product Updates

ecef2nedv

Rotate vector from geocentric ECEF to local NED

Syntax

  • [uNorth,vEast,wDown] = ecef2nedv(U,V,W,lat0,lon0)
  • [___] = ecef2nedv(___,angleUnit)

Description

[uNorth,vEast,wDown] = ecef2nedv(U,V,W,lat0,lon0) returns Cartesian 3-vector components in a local north-east-down (NED) system corresponding to the 3-vector with components U, V, W in an Earth-Centered Earth-Fixed (ECEF) spheroid-centric Cartesian system. Any of the five numerical input arguments can be scalar, even when the others are nonscalar; but all nonscalar numeric arguments must match in size.

[___] = ecef2nedv(___,angleUnit) adds angleUnit which specifies the units of inputs lat0 and lon0.

Input Arguments

expand all

U — Vector x-components in ECEF systemscalar value | vector | matrix | N-D array

x-components of one or more Cartesian vectors in the spheroid-centric ECEF system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

V — Vector y-components in ECEF systemscalar value | vector | matrix | N-D array

y-components of one or more Cartesian vectors in the spheroid-centric ECEF system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

W — Vector z-components in ECEF systemscalar value | vector | matrix | N-D array

z-components of one or more Cartesian vectors in the spheroid-centric ECEF system, specified as a scalar value, vector, matrix, or N-D array.

Data Types: single | double

lat0 — Geodetic latitude of local originscalar value | vector | matrix | N-D array

Geodetic latitude of local origin (reference) point(s), specified as a scalar value, vector, matrix, or N-D array. In many cases there is one origin (reference) point, and the value of lat0 is scalar, but it need not be. (It may refer to a moving platform, for example). Values must be in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

Data Types: single | double

lon0 — Longitude of local originscalar value | vector | matrix | N-D array

Longitude of local origin (reference) point(s), specified as a scalar value, vector, matrix, or N-D array. In many cases there is one origin (reference) point, and the value of lon0 is scalar, but it need not be. (It may refer to a moving platform, for example). Values must be in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

Data Types: single | double

angleUnit — Units of angles'degrees' (default) | 'radians'

Units of angles, specified as ‘degrees' (default), or 'radians'.

Data Types: char

Output Arguments

expand all

uNorth — Vector x-components in NED systemscalar value | vector | matrix | N-D array

x-components of one or more Cartesian vectors in the local NED system, returned as a scalar value, vector, matrix, or N-D array.

vEast — Vector y-components in NED systemscalar value | vector | matrix | N-D array

y-components of one or more Cartesian vectors in the local NED system, returned as a scalar value, vector, matrix, or N-D array.

wDown — Vector z-components in NED systemscalar value | vector | matrix | N-D array

z-components of one or more Cartesian vectors in the local NED system, returned as a scalar value, vector, matrix, or N-D array.

See Also

| |

Was this topic helpful?