Longitude latitude to X-Y plane

15 ビュー (過去 30 日間)
Devinya Herath
Devinya Herath 2011 年 10 月 28 日
コメント済み: Dyuman Joshi 2023 年 11 月 8 日
I have a set of latitude, longitude pairs obtained using a GPS receiver. The readings correspond to WGS84. I want to convert them to coordinates in the X-Y plane using matlab. Could anyone please help me with this?
  1 件のコメント
suresh
suresh 2011 年 11 月 16 日
移動済み: Dyuman Joshi 2023 年 11 月 8 日
if you the answer please do forward

サインインしてコメントする。

回答 (1 件)

Raj
Raj 2023 年 11 月 8 日
編集済み: Raj 2023 年 11 月 8 日
Hello,
I have a solution which you can try using and check if it solves your problem
lat = [40.7128, 51.5074, 48.8566, 35.6895, 37.7749, -33.8688, 55.7558, -22.9068, 52.5200, 19.4326, -34.6037, 37.9838, -6.2088, 59.3293, -33.9249, 43.6532, 41.9028, 48.8566, 31.9686, 37.5665];
lon = [-74.0060, -0.1278, 2.3522, 139.6917, -122.4194, 151.2093, 37.6176, -43.1729, 13.4050, -99.1332, -58.3816, 23.7275, 106.8456, 18.0686, 18.4241, -79.3832, 12.4964, 2.3522, 99.9018, 126.9780];
geoid=wgs84Ellipsoid;
[X, Y, Z] = geodetic2ecef(geoid, lat, lon, 0);
[x, y, z] = ecef2enu(X, Y, Z, lat(1), lon(1), 0, geoid);
Here 'x' and 'y' contains the converted coordinates in X-Y plane. Hope this helps!
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 11 月 8 日
Note, the functions used require the Mapping Toolbox.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by