Linear SVM pipeline in MATLAB