How to calculate the middle point between two points on the Earth in matlab?
Mostra commenti meno recenti
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 Commenti
Sad Grad Student
il 9 Lug 2015
could you give an example of your input and the expected output?
James Tursa
il 9 Lug 2015
Modificato: James Tursa
il 9 Lug 2015
Middle point on a great circle arc assuming a sphere? Or something else?
How is your data stored?
Risposta accettata
Più risposte (1)
Ted Shultz
il 20 Ago 2019
2 voti
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)
Categorie
Scopri di più su Geometric Geodesy in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!