Code covered by the BSD License  

Highlights from
Computing Pairwise Distances and Metrics

from Computing Pairwise Distances and Metrics by Dahua Lin
Compute pairwise distance or metric values between two sets of vectors

slmetric_pw_compile()
function slmetric_pw_compile()
%SLMETRIC_PW_COMPILE Compiles the CPP mex files for slmetric_pw
%
% [ History ]
%   - Created by Dahua Lin, on Aug 16, 2007
%

mdir = fileparts(mfilename('fullpath'));
if ~strcmp(pwd(), mdir)
    cd(mdir);
end

disp('compile pwhamming_cimp.cpp');
mex -O pwhamming_cimp.cpp

disp('compile pwmetrics_cimp.cpp');
mex -O pwmetrics_cimp.cpp

disp('compilation completed.');

Contact us at files@mathworks.com