How to calculate the middle point between two points on the Earth in matlab?
Mostrar comentarios más antiguos
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 comentarios
Sad Grad Student
el 9 de Jul. de 2015
could you give an example of your input and the expected output?
James Tursa
el 9 de Jul. de 2015
Editada: James Tursa
el 9 de Jul. de 2015
Middle point on a great circle arc assuming a sphere? Or something else?
How is your data stored?
Respuesta aceptada
Más respuestas (1)
Ted Shultz
el 20 de Ag. de 2019
2 votos
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)
Categorías
Más información sobre Geometric Geodesy en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!