Kmeans - Too many input arguements on Train a k-Means Clustering Algorithm example

1 Ansicht (letzte 30 Tage)
Hi, I have downloaded the example "Train a k-Means Clustering Algorithm" https://uk.mathworks.com/help/stats/kmeans.html, but this yields the error message "error using kmeans, Too many input arguments". The same is true whatever I try and use kmeans with.
I have followed previous posts which suggest checking the version of kmeans using "which kmeans" This yields tools\statistic_tools\kmeans.m % kmeans constructor
Why is this error message appearing

Antworten (1)

Yash Ubale
Yash Ubale am 15 Nov. 2018
Hello,
Are you sharing the complete path? Looks like there is another copy of default "kmeans.m" file of the Statistics and Machine Learning Toolbox. Also, which MATLAB version are you using?
Please share the entire output after executing the following command :
which kmeans -all
Moreover, follow the answer of the following question :
Why do I get the error message, 'Too Many Input/Output Arguments' when I try to execute a function? - https://www.mathworks.com/matlabcentral/answers/101665-why-do-i-get-the-error-message-too-many-input-output-arguments-when-i-try-to-execute-a-function

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by