posdist

Calculates distance between two geographical positions in lat/long format

Ahora está siguiendo esta publicación

Calculates distance in km between two points given in decimal degrees latitude and longitude. Calculation can be great circle distance (smallest distance along the surface of a sphere) or Cartesian distance (planar approximation for smaller distances).
Input can be as scalars or arrays, as long as dimensions are identical for all four coordinates.

The function is based on the pos2dist function submitted by Langqui Sun, modified to allow arrays as input.

Citar como

Jakob Tougaard (2026). posdist (https://es.mathworks.com/matlabcentral/fileexchange/35562-posdist), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspirado por: pos2dist

Inspiración para: pathdist

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0