Matlab code for machine learning and computer vision algorithms