Assuming that the dimensions of your testdata allow you to use the predict function:
main.m43 chars2 lines
This will use the knnmodel to classify the letters in testdata and store the predictions in the variable predictions.
gistlibby LogSnag