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 CenterFile 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!

Translated by