I am trying to implement the knnclassify function on my own.
I have two matrices, train (45x644) and test (5x644) and I am trying to implement knn using euclidean to find the class of test data.
I have found the the distance between the two and sorted them.
I am at a loss to know what to do after this. I need to return the k data points which are close to my test data, is this right? If yes, how do I do that? I do not want to use the matlab function knnclassify().