matlab geodetic2ecef,Transform geodetic coordinates to local spherical

Find the AER coordinates of the Matterhorn with respect to Zermatt, Switzerland, using the geodetic coordinates of Zermatt and the Matterhorn.

First, specify the reference spheroid as WGS 84. For more information about WGS 84, see Reference Spheroids. The units for ellipsoidal height and slant range must match the units specified by the LengthUnit property of the reference spheroid. The default length unit for the reference spheroid created by wgs84Ellipsoid is 'meter'.

wgs84 = wgs84Ellipsoid;

Specify the geodetic coordinates of the local origin. In this example, the local origin is Zermatt. Specify h0 as ellipsoidal height in meters.

lat0 = 46.017;

lon0 = 7.750;

h0 = 1673;

Specify the geodetic coordinates of the point of interest. In this example, the point of interest is the Matterhorn. Specify h as ellipsoidal height in meters.

lat = 45.977;

lon = 7.658;

h = 4531;

Then, calculate the AER coordinates of the Matterhorn with respect to Zermatt. To view the results in standard notation, specify the display format as shortG.

format shortG

[az,elev,slantRange] = geodetic2aer(lat,lon,h,lat0,lon0,h0,wgs84)

az =

238.08

elev =

18.744

slantRange =

8876.8

Reverse the transformation using the aer2geodetic function.

[lat,lon,h] = aer2geodetic(az,elev,slantRange,lat0,lon0,h0,wgs84)

lat =

45.977

lon =

7.658

h =

4531

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值