ECEF2AER convert ECEF of target to azimuth, elevation, slant range from observer

Contents

Inputs

Outputs

function [az, el, slantRange] = ecef2aer(x, y, z, lat0, lon0, alt0, spheroid, angleUnit)
if nargin < 7 || isempty(spheroid)
  spheroid = matmap3d.wgs84Ellipsoid();
end
if nargin < 8
  angleUnit = 'd';
end

[e, n, u] = matmap3d.ecef2enu(x, y, z, lat0, lon0, alt0, spheroid, angleUnit);
[az,el,slantRange] = matmap3d.enu2aer(e, n, u, angleUnit);

end