how to use KNN method

i want to use this method like if i have any vector and i want its neareast neighbours in whole matric for example by desired vector is [1 2 3] and i have 1000 rows so it must return me closest points with their cols information where they exist

This question is closed.

Tags

Asked:

on 28 Aug 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!