필터 지우기
필터 지우기

Knnsearch given wrong number of argument

조회 수: 2 (최근 30일)
Tino
Tino 2019년 5월 13일
편집: Walter Roberson 2023년 1월 29일
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);

답변 (1개)

Walter Roberson
Walter Roberson 2019년 5월 13일
이동: Sabin 2023년 1월 29일
[idx, dist] = knnsearch(X,Y,'k', 1,'includeties',true);
  댓글 수: 1
Tino
Tino 2019년 5월 13일
이동: Sabin 2023년 1월 29일
Thanks Walter

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by