ENU2GEODETIC convert from ENU to geodetic coordinates

Contents

Inputs

outputs

function [lat, lon, alt] = enu2geodetic(east, north, up, lat0, lon0, alt0, spheroid, angleUnit)
if nargin < 7 || isempty(spheroid)
  spheroid = matmap3d.referenceEllipsoid();
end
if nargin < 8
  angleUnit = 'd';
end

[x, y, z] = matmap3d.enu2ecef(east, north, up, lat0, lon0, alt0, spheroid, angleUnit);
[lat, lon, alt] = matmap3d.ecef2geodetic(spheroid, x, y, z,  angleUnit);

end