Distance calculation using Haversine formula (Scripts) Publisher's description
from Josiah Renfree
This program calculates the distance between two locations (latitude and longitude)
This program calculates the distance between two locations (latitude and longitude) using the Haversine formula. The Haversine formula gives the shortest distance between two points over the earth's surface, ignoring elevation, hills, etc...
The program accepts two inputs that can be locations specified as either degrees, minutes, and seconds or by decimal degrees. The output is the distance in km, n.mi, and miles.
haversine('53 08 50N, 001 50 58W', '52 12 16N, 000 08 26E') returns 170.2547
haversine([53.1472 -1.8494], '52 12.16N, 000 08.26E') returns 170.2508
haversine([53.1472 -1.8494], [52.2044 0.1406]) returns 170.2563
System Requirements:MATLAB 7.9 (2009b)
Program Release Status: New Release
Program Install Support: Install and Uninstall