Kmeans - Too many input arguements on Train a k-Means Clustering Algorithm example
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!