use the predict function with the trained model knnmodel to classify the letters in the table testdata. store the predictions in a variable called predictions. in matlab

Assuming that the dimensions of your testdata allow you to use the predict function:

main.m
predictions = predict(knnmodel, testdata);
43 chars
2 lines

This will use the knnmodel to classify the letters in testdata and store the predictions in the variable predictions.

related categories

gistlibby LogSnag