Example code for how to write and SVM classifier in MATLAB