Miscellaneous MATLAB functions for machine learning.