Kdtree implementation in matlab

The code contains a kd tree implementation in Matlab


Updated 17 Feb 2010

View License

Most of the kdtree code for matlab has been implemented via mex files. I decided to come up with a purely matlab based implementation and so here it is .... The code is obviously expected to be slower than some of the c/c++ implementations that are out there but the fact that its implemented in matlab might make it useful in certain circumstances. Matlab doesnot have pointers and so i mimicked the pointer functionality by using a global cell array. I will appreciate any feedback on my submission ........

Cite As

Pramod Vemulapalli (2023). Kdtree implementation in matlab (https://www.mathworks.com/matlabcentral/fileexchange/26649-kdtree-implementation-in-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Fixed a bug in the tree generation code ... and made corresponding changes in the other files

Fixed a bug in kd_knn.m , Also wanted to acknowledge the contribution of Steven Michael

Wanted to acknowledge some of the other submissions on the topic