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!