Nearest Matlab, Available distance metrics include Euclidean, Hamming, and Mahalanobis, among others.