How to calculate the middle point between two points on the Earth in matlab?
이전 댓글 표시
Given the latitudes and longitudes of two points, how to get the middle point efficiently?
My trouble is there are millions of point pairs to calculate....
댓글 수: 2
Sad Grad Student
2015년 7월 9일
could you give an example of your input and the expected output?
James Tursa
2015년 7월 9일
편집: James Tursa
2015년 7월 9일
Middle point on a great circle arc assuming a sphere? Or something else?
How is your data stored?
채택된 답변
추가 답변 (1개)
Ted Shultz
2019년 8월 20일
2 개 추천
There is a built in function in the matlab mapping toolbox that does what I think you are looking for: meanm
Mean location of geographic coordinates
Syntax
[latmean,lonmean] = meanm(lat,lon)
[latmean,lonmean] = meanm(lat,lon,units)
[latmean,lonmean] = meanm(lat,lon,ellipsoid)
카테고리
도움말 센터 및 File Exchange에서 Geometric Geodesy에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!