Code covered by the BSD License  

Highlights from
Compute the Great Circle Distance between two points

from Compute the Great Circle Distance between two points by Steve Ratts
compute the great circle distance between two points given lat and long.

All files for Compute the Great Circle Distance between two points
/greatCircleDistance.m
/license.txt

Contact us at files@mathworks.com