??? Undefined function or method 'nearestneighbour' for input arguments of type 'double'. Error in ==> nncode at 7 I = nearestneighbour(P, X);

1 view (last 30 days)
Hi, i always get this error message when ever i try to run a function pls help me to resolve it....

Answers (1)

Image Analyst
Image Analyst on 9 Oct 2014
Seems pretty self explanatory. Your nncode function is calling the nearestneighbour() function, which is not in the nncode m-file or any other m-file on the search path. You need to put it there or write a new one.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!