MLP and SVM matlab implementation