Matlab code for machine learning methods