We provided some MATLAB codes for the implementation of a kernel-based distance metric learning. More information can be provided upon request (xwchen@ku.edu).