raw = double(cell2mat(raw))
dimen = size(raw)
nraw = dimen(1)
ncol = dimen(2)
train_set = raw(1:(nrow/2),:)
test_set = raw(((nrow/2) + 1):nrow,:)
No products are associated with this question.
I don't have your data. I suspect you need to define train_set and test_set to have only the data without the class labels. Then create train_class and test_class to hold the class labels. Then type "help classify" and "help confusionmat" and see where that gets you.
this is a link to my data : https://www.dropbox.com/s/cavfeuyfby8ciq6/orderedfile.xlsx