Borrar filtros
Borrar filtros

Error using kmeans Too Many input Arguments

1 visualización (últimos 30 días)
Ynne
Ynne el 16 de Oct. de 2016
Comentada: Rik el 10 de Ag. de 2021
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');

Respuesta aceptada

Jan
Jan el 16 de Oct. de 2016
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 comentarios
KiranKumar Makam
KiranKumar Makam el 10 de Ag. de 2021
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 el 10 de Ag. de 2021
Which cluster function is your code expecting? The one from the Statistics and Machine Learning Toolbox, or from EMGLab?

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by