Plot k-D tree using the k-nearest neighbour algorithm

I want to make a plot which will contain some nodes according to a given dataset having X-axis and Y-axis. The plot will build a k-D tree using the k-nearest neighbor algorithm and will show the direction line of subsequent nearest points from a specific given coordinate point suppose (50,50). How can I do that?
My Dataset contains node number, X-Axis, Y-Axis, Distance and its a .csv file.

2 Kommentare

I have tried this code before but it doesn't use kNN algorithom to build tree

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Nov. 2020

Kommentiert:

am 11 Nov. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by