What is the toolbox for kmeans?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Enrica Brunetti
le 17 Juin 2019
Commenté : Steven Lord
le 17 Juin 2019
What is the toolbox to obtain kmeans as a function? I have these toolboxes: 'Deep learning toolbox, Statistics and machine learning toolbox, Image processing toolbox', but Matlab doesn't find kmeans as a function. Why??
0 commentaires
Réponse acceptée
Steven Lord
le 17 Juin 2019
The kmeans function is in Statistics and Machine Learning Toolbox (previously the Statistics Toolbox) and has been since at least release R2006a. Do you have this toolbox both installed and licensed? [If you're in an environment where you share licenses with others in your institution, all the licenses may be in use when you try to use kmeans.]
Can you clarify what you mean by "Matlab[sic] doesn't find kmeans as a function"? Does it throw an error (and if so what is the full and exact text of that error -- show us all the text displayed in red?) Does it issue a warning? Does it do something else?
2 commentaires
Steven Lord
le 17 Juin 2019
You've written your own kmeans.m file that's shadowing the function included in Statistics and Machine Learning Toolbox. Rename or delete your kmeans.m and you should be able to use the one from the toolbox.
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!