This is a pattern recognition algorithm for nearest neighbor classification in a simple simulation category instance, where female.txt and male.txt are the training samples, test.txt is the measurement, classification work very well, for beginners beginners learning the pattern will go a long way. Has passed the tests.
File list:
FEMALE.TXT
LinJinFa1.m
MALE.TXT
test1.txt
test2.txt