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.

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.0005

Determine 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.9975

Introduced in R2006b

Was this topic helpful?