clc;clear;close all; traindata = [1,0; 3,10; 2,2; 2,3; -1,-1; -6,-4; -4,-1; -1.5, -3];group = [1 1 1 1 -1 -1 -1 -1]'; testdata = [ 1,2; 1,1; -1,-4;-2, -3];svm_struct = svmtrain(traindata,group,'Showplot',true); % trainingGroup = svmclassify(svm_struc