Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
knn that returns the neighbors?

Subject: knn that returns the neighbors?

From: carl

Date: 15 Apr, 2010 07:16:38

Message: 1 of 3

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?

Subject: knn that returns the neighbors?

From: David Tian

Date: 15 Apr, 2010 08:46:07

Message: 2 of 3

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@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?

Subject: knn that returns the neighbors?

From: Ting Su

Date: 15 Apr, 2010 14:34:20

Message: 3 of 3

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@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?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us