Error using kmeans Too Many input Arguments

Hello, Error using kmeans Too many input arguments. The code is below. It works when trying with matlab 7 but fails whith matlab 8.5.
Any indications please ?
[IDX,C] = kmeans(PARA.data,PARA.class_n, 'Start','cluster', ... 'Maxiter',1000, ... 'EmptyAction','singleton', ... 'Display','off');

 채택된 답변

Jan
Jan 2016년 10월 16일

3 개 추천

Which version of kmeans are you using? See:
which kmeans -all
Please post the complete error message. Perhaps "PARA.data" contains a function, which does not have any output arguments. Without knowing your exact data, this cannot be guessed.

댓글 수: 4

Ynne
Ynne 2016년 10월 16일
Thanks a lot, the problem was solved. which kmeans -all retrun 2 versions (one of them was the wrong version)
Phil A
Phil A 2018년 6월 11일
Hey,
I now encountered the same problem but was not able to solve it yet. How did you solve the issue with the wrong version?
Best, Philipp
I am getting the same error for cluster
>>>Z = linkage(wcorr);
Error using cluster
Too many input arguments.
which cluster -all
/MATLAB Drive/EMGLab/m files/cluster.m
/MATLAB/toolbox/stats/stats/@gmdistribution/cluster.m % gmdistribution method
/MATLAB/toolbox/bioinfo/bioinfo/@phytree/cluster.m % phytree method
/MATLAB/toolbox/stats/stats/cluster.m % Shadowed
Rik
Rik 2021년 8월 10일
Which cluster function is your code expecting? The one from the Statistics and Machine Learning Toolbox, or from EMGLab?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2016년 10월 16일

댓글:

Rik
2021년 8월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by