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 で Vector Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!