Distance calculation using Haversine formula
Compute the distance between two locations using the Haversine formula
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Josiah Renfree (2026). Distance calculation using Haversine formula (https://www.mathworks.com/matlabcentral/fileexchange/27785-distance-calculation-using-haversine-formula), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0 (2.66 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.1.0 | Removed use of the deg2rad function, which required the Mapping toolbox. The conversion is now done by simply multiplying degrees by pi/180. Clarified in the help section that the first element in LOC is latitude and the second is longitude. |
||
| 1.0.0 |