latlon2local
Description
[
converts point locations given by xEast
,yNorth
,zUp
] = latlon2local(lat
,lon
,alt
,origin
)lat
, lon
, and
alt
from geographic coordinates to local Cartesian coordinates
returned as xEast
, yNorth
, and
zUp
. origin
specifies the anchor of the local
coordinate system as a vector of the form
[latOrigin,lonOrigin,altOrigin].
Local x, y, z coordinates align
with east, north and up directions, respectively. alt
and
altOrigin
are altitudes as returned by a typical GPS sensor.
Examples
Input Arguments
Output Arguments
Tips
The latitude and longitude of the geographic coordinate system use the WGS84 standard that is commonly used by GPS receivers.
This function defines altitude as the height, in meters, above the WGS84 reference ellipsoid.
Some GPS receivers use standards other than WGS84. Conversions using other ellipsoids are available in the Mapping Toolbox. This function addresses the most common conversion between geographic locations and Cartesian coordinates used by the on-board sensors of a vehicle.