Error in knnsearch when using Ionosphere dataset

2 views (last 30 days)
Hi I am receiving the following error when trying to run the knnsearch function with the standard Ionosphere dataset. Could someone please help?
Error using ExhaustiveSearcher/setDistParameter (line 110) The Cov argument must be symmetric and positive definite.
Error in NeighborSearcher/set.DistParameter (line 71) this = setDistParameter(this, distPara);
Error in ExhaustiveSearcher (line 274) obj.DistParameter = nancov(X);
Error in createns (line 174) O = ExhaustiveSearcher(X,'distance', distMetric,...
Error in knnsearch (line 140) O=createns(X,args{:},'nsmethod', nsmethod,'bucketSize',bSize);
Error in MyPgm (line 37) [knn] = knnsearch(dataset, dataset, 'k', K, 'distance',distMeasure);
>>
Thanks in advance Deepa

Answers (0)

Categories

Find more on Curve Fitting Toolbox 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!