Code covered by the BSD License  

Highlights from
Pairwise Distance Matrix

from Pairwise Distance Matrix by Mo Chen
Compute a matrix of square Euclidean or Mahalanobis distances between points sets(fully optimized!).

All files for Pairwise Distance Matrix
/license.txt
/sqdistance.m

Contact us at files@mathworks.com