You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Jakob Tougaard (2026). posdist (https://au.mathworks.com/matlabcentral/fileexchange/35562-posdist), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.99 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
