dcm2latlon - Convert direction cosine matrix to geodetic latitude and longitude
Syntax
[lat lon] = dcm2latlon(n)
Description
[lat lon] = dcm2latlon(n) calculates
the geodetic latitude and longitude, lat and lon,
for a given direction cosine matrix, n. n is
a 3-by-3-by-m matrix containing m orthogonal
direction cosine matrices. lat is an m array
of geodetic latitudes. lon is an m array
of longitudes. n performs the coordinate transformation
of a vector in Earth-centered Earth-fixed (ECEF) axes into a vector
in north-east-down (NED) axes. Geodetic latitudes and longitudes are
output in degrees.
Examples
Determine the geodetic latitude and longitude from direction
cosine matrix:
dcm = [ 0.3747 0.5997 0.7071; ...
0.8480 -0.5299 0; ...
0.3747 0.5997 -0.7071];
[lat lon] = dcm2latlon(dcm)
lat =
44.9995
lon =
-122.0005Determine the geodetic latitude and longitude from multiple
direction cosine matrices:
dcm = [ 0.3747 0.5997 0.7071; ...
0.8480 -0.5299 0; ...
0.3747 0.5997 -0.7071];
dcm(:,:,2) = [-0.0531 0.6064 0.7934; ...
0.9962 0.0872 0; ...
-0.0691 0.7903 -0.6088];
[lat lon] = dcm2latlon(dcm)
lat =
44.9995
37.5028
lon =
-122.0005
-84.9975See Also
angle2dcm, dcm2angle, dcmecef2ned
 | dcm2angle | | dcm2quat |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit