Can i know what is the solution for this error
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Hello i found this error in matlab when i'm using kmeans function
Undefined function 'initkm' for input arguments of type 'single'.
Error in kmeans (line 65) center = initkm(cluster_n, data); % Initial cluster centers
5 commentaires
dpb
le 8 Oct 2013
Which release, which kmeans?
My version (R2012b) has no initkm in kmeans.m and line 65 is well within the header comment section, not even into executable code yet...
Mohammed Magdy
le 8 Oct 2013
That runs just fine here...
Try
which kmeans
at command line -- sounds to me like you've got some other function in place of the one in the Statistics Toolbox. That much difference in m-file content doesn't sound right altho I guess there could have been extensive revisions between a and b releases. Unfortunately, I've no earlier version to compare to.
Mohammed Magdy
le 8 Oct 2013
dpb
le 9 Oct 2013
Clearly you're not using the Matlab Statistics Toolbox kmeans
Whatever/wherever you obtained it is where to find support for it; the Matlab forum can't help in all likelihood.
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!