Knnsearch given wrong number of argument

2 vues (au cours des 30 derniers jours)
Tino
Tino le 13 Mai 2019
matlaHi
Can anyone effectively correct me on this
Thanks in advance
Regards
Jonathan
Train = [1194; 1005; 731; 658; 652; 556; 664, 645, 542, 644];
X = Train;
Y = [359 1194; 264 1005; 198 731; 166 658; 200 652; 160 556; 170 664; 147 645; 160 542; 177 644];
[idx, dist] = knnsearch(X,Y,'k', 1,'includeties','IncludeTies', true);
Error using internal.stats.parseArgs (line 42)
Wrong number of arguments.
Error in knnsearch (line 142)
internal.stats.parseArgs(pnames, dflts, varargin{:});
Error in compa (line 5)
[idx, dist] = knnsearch(X,Y,'k', 1,'includeties','IncludeTies', true);

Réponses (1)

Walter Roberson
Walter Roberson le 13 Mai 2019
Déplacé(e) : Sabin le 29 Jan 2023
[idx, dist] = knnsearch(X,Y,'k', 1,'includeties',true);
  1 commentaire
Tino
Tino le 13 Mai 2019
Déplacé(e) : Sabin le 29 Jan 2023
Thanks Walter

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by