标签: matlab classification
这是我的部分..模糊knn的行代码不起作用一点帮助将是有用的..注意它的性别分类代码和knn值是k = 1.
sample= coefficent'; training=X ; group = Y; class = fknnclassify(X,2,Y, [0 1],1,info,fuzzy); if class==1 x='Male'; else % the female label is 0 % x='Female'; end