Prev: About behavior of KeyPressFcn
Next: mcc generating .exe
From: Kyle on 8 Jul 2010 16:06 Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message <i12q1n$k9q$1(a)fred.mathworks.com>... > On 7/7/2010 4:45 PM, Kyle wrote: > > So I have a data set of point coordinates in x, y, z format. > > > > Given any one of the points, I was wondering if there is a matlab > > function out there that can return the closest point in the data set to > > the given point in 3d space. > > Kyle, if you have access to the Statistics Toolbox, see KNNSEARCH. I do have this toolbox but the knnsearch files that I am finding seem to all be for data sets in 2d. Can the knnsearch functions be applied to 3d points?
From: Peter Perkins on 12 Jul 2010 08:44
On 7/8/2010 4:06 PM, Kyle wrote: > Peter Perkins <Peter.Perkins(a)MathRemoveThisWorks.com> wrote in message >> Kyle, if you have access to the Statistics Toolbox, see KNNSEARCH. > > I do have this toolbox but the knnsearch files that I am finding seem to > all be for data sets in 2d. Can the knnsearch functions be applied to 3d > points? The examples may all be in 2D, to make them easier to "see", but the KNNSEARCH function <http://www.mathworks.com/access/helpdesk/help/toolbox/stats/knnsearch.html> is definitely not limited to 2D. |