MATLAB: Error using kmeans Too Many input Arguments

error too many input argumentsk-meansmatlab 7matlab 8.5Statistics and Machine Learning Toolbox

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');

Best Answer

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.
Related Question