Lat long Conversion from geodetic to ECEF

조회 수: 13 (최근 30일)
Curious
Curious 2022년 7월 15일
댓글: Curious 2022년 7월 17일
I have a problem. I want to convert lattitude and longitude from geodetic coordinates(given in degrees as 33.7660° N, 72.3609° E) to ECEF. There is a function for this as "lla2ecef' but it only do it for one position and I want to do it for like 4 coordinates (lat,long) and I have no clue. Any help would be appreciated.

채택된 답변

Amritesh
Amritesh 2022년 7월 15일
You can input your 4 coordinates in lla2ecef like
p = lla2ecef([0 45 1000; 45 90 2000], 'WGS84');
Here, it is 2 coordinates(lat, lon, and h) are used. You can find more details at Determine ECEF Coordinates at Multiple Latitudes, Longitudes, and Altitudes section of https://in.mathworks.com/help/aerotbx/ug/lla2ecef.html
You can also look into geodetic function.
  댓글 수: 1
Curious
Curious 2022년 7월 17일
Hello @Amritesh..
I am using the above function as given but it gives me error while all the relevant syntax is correct. kindly review it.
[x(k),y(k),z(k)] = lla2ecef(latR_DME(k) ,lonR_DME(k), alt);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Physical and Time Unit Conversions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by