//// SVM for XOR problem r_i=[0 1 0 1 ; 0 0 1 1]; r_d=[0 1 1 0]; model = svmtrain(r_d',r_i'); svmpredict(r_d',r_i',model);