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

1 回表示 (過去 30 日間)
Penny Wieser
Penny Wieser 2018 年 11 月 12 日
回答済み: Yash Ubale 2018 年 11 月 15 日
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

回答 (1 件)

Yash Ubale
Yash Ubale 2018 年 11 月 15 日
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

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by