Perform closest point search or range query using a k-D tree implementation.
Author: Guy Shechter
thanks for the work.
I am having the same problem of getting an error "Attempt to execute SCRIPT kdtree as a function".
Any idea so that i can implement the code.
---currently using R2010b on windows 7 64 bit.