Can i know what is the solution for this error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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 Comments
dpb
on 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
on 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
on 8 Oct 2013
dpb
on 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.
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!