Can i know what is the solution for this error
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentare
dpb
am 8 Okt. 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
am 8 Okt. 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
am 8 Okt. 2013
dpb
am 9 Okt. 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.
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!