posdist
Versione 1.0.0.0 (1,99 KB) da
Jakob Tougaard
Calculates distance between two geographical positions in lat/long format
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.
Cita come
Jakob Tougaard (2026). posdist (https://it.mathworks.com/matlabcentral/fileexchange/35562-posdist), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2010a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
Scopri di più su Coordinate Reference Systems in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
