SVM Classifications on set of images of digits in Matlab
问题 I have to use SVM classifier on digits dataset. The dataset consists of images of digits 28x28 and a toal of 2000 images. I tried to use svmtrain but the matlab gave an error that svmtrain has been removed. so now i am using fitcsvm. My code is as below: labelData = zeros(2000,1); for i=1:1000 labelData(i,1)=1; end for j=1001:2000 labelData(j,1)=1; end SVMStruct =fitcsvm(trainingData,labelData) %where training data is the set of images of digits. I need to know how i can predict the outputs