How to calculate the middle point between two points on the Earth in matlab?
Ältere Kommentare anzeigen
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 Kommentare
Sad Grad Student
am 9 Jul. 2015
could you give an example of your input and the expected output?
James Tursa
am 9 Jul. 2015
Bearbeitet: James Tursa
am 9 Jul. 2015
Middle point on a great circle arc assuming a sphere? Or something else?
How is your data stored?
Akzeptierte Antwort
Weitere Antworten (1)
Ted Shultz
am 20 Aug. 2019
2 Stimmen
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)
Kategorien
Mehr zu Geometric Geodesy finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!