MATLAB: Train and test data using KNN classifier

knn crossvalidation k nearest neighborStatistics and Machine Learning Toolbox

HI I want to know how to train and test data using KNN classifier we cross validate data by 10 fold cross validation. there are different commands like KNNclassify or KNNclassification.Fit. Don't know how to accomplish task Plz help me Thanks

Best Answer

Have you tried out the examples in the documentation?
I don't think we can help you any better than the examples in the doc. If you have specific questions then we can address that.