In matlab there is a function called KnnImpute that permit to replace missing values in a matrix using Knn Algorithm. Looking at the http://www.mathworks.it/help/toolbox/bioinfo/ref/knnimpute.html I've found that it searchs through matrix's columns but I'd like to search for neighbors checking along rows. Is there a function that permit to do that? Where could I find matlab code to realize what I need?
Can you just transpose the matrix using '
and run knnimpute
?