Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

geodetic2ned

Geodetic to local Cartesian NED

Syntax

[xNorth,yEast,zDown] = geodetic2ned(lat,lon,h,lat0,lon0,h0,spheroid)
[___] = geodetic2ned(___,angleUnit)

Description

[xNorth,yEast,zDown] = geodetic2ned(lat,lon,h,lat0,lon0,h0,spheroid) transforms point locations from geodetic coordinates (lat, lon, h) to local, north-east-down (NED), Cartesian coordinates (xNorth, yEast, zDown), given a local coordinate system defined by the geodetic coordinates of its origin (lat0, lon0, h0). The geodetic coordinates refer to the reference body specified by the spheroid object, spheroid. Each coordinate input argument must match the others in size or be scalar.

[___] = geodetic2ned(___,angleUnit) specifies the unit of the latitude and longitude input arguments, lat, lon, lat0, and lon0.

Input Arguments

collapse all

Geodetic latitudes of one or more points, specified as a scalar value, vector, matrix, or N-D array. Values must be in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

Data Types: single | double

Longitudes of one or more points, specified as a scalar value, vector, matrix, or N-D array. Values must be in units that match the input argument angleUnit, if supplied, and in degrees, otherwise.

Data Types: single | double

Ellipsoidal heights of one or more points, specified as a scalar value, vector, matrix, or N-D array. Values must be in units that match the LengthUnit property of the spheroid object.

Data Types: single | double

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

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

Ellipsoidal height 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 h0 is scalar, but it need not be. (It may refer to a moving platform, for example). Units are determined by the LengthUnit property of the spheroid input.

Data Types: single | double

Reference spheroid, specified as a referenceEllipsoid, oblateSpheroid, or referenceSphere object. Use the constructor for one of these three classes, or the wgs84Ellipsoid function, to construct a Mapping Toolbox spheroid object. You can not directly pass in the name of your spheroid. Instead, pass that name to referenceEllipsoid or referenceSphere and use the resulting object.

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

Data Types: char

Output Arguments

collapse all

x-coordinates of one or more points in the local NED system, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the LengthUnit property of the spheroid input.

y-coordinates of one or more points in the local NED system, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the LengthUnit property of the spheroid input.

z-coordinates of one or more points in the local NED system, returned as a scalar value, vector, matrix, or N-D array. Units are determined by the LengthUnit property of the spheroid input.

Introduced in R2012b

Was this topic helpful?