From: carl on
Is there a matlab implementation that returns the k nearest neighbors
instead of the class label for the majority class of the k nearest
neighbors?

From: David Tian on
Well, which toolbox did you use for knn? if you know the matlab code, you could change it to output neighbours.

David

"carl" <carl@.com> wrote in message <4bc6bd58$0$272$14726298(a)news.sunsite.dk>...
> Is there a matlab implementation that returns the k nearest neighbors
> instead of the class label for the majority class of the k nearest
> neighbors?
From: Ting Su on
Carl,
The Statistics toolbox in MATLAB provides a few functions and classes
performing KNN search.
Please check:
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/knnsearch.html
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/exhaustivesearcherclass.html
http://www.mathworks.com/access/helpdesk/help/toolbox/stats/kdtreesearcherclass.html

-Ting
Mathworks

"carl" <carl@.com> wrote in message
news:4bc6bd58$0$272$14726298(a)news.sunsite.dk...
> Is there a matlab implementation that returns the k nearest neighbors
> instead of the class label for the majority class of the k nearest
> neighbors?