Introduction - If you have any usage issues, please Google them yourself
For students who are interested in pattern recognition, they are MATLAB codes for K nearest neighbors. I hope they can help you. This code can run directly, you can change the parameters you are interested in.