File Exchange

image thumbnail

Kmeans

version 1.0 (1.62 KB) by

Kmeans implemented using accumarray

8 Downloads

Updated

View License

Kmeans implemetation using accumarry, inspired by Mo Chen (http://www.mathworks.com/matlabcentral/fileexchange/24616). Performance much better than build-in kmeans, worse than Mo's original work. Mainly used for demostrate the use of accumarray.

Comments and Ratings (8)

Dani

Dani (view profile)

i have the same errors

shawin

shawin (view profile)

please i have error when i run the code , it is :

Undefined function or variable 'dn'.

Error in kmeans (line 6)
label = ceil(rand(1, dn(D)) * k);

Error in Main (line 18)
[label, means] = kmeans(Data, k, maxIter)

shawin

shawin (view profile)

please i have error when i run the code , it is :

Undefined function or variable 'dn'.

Error in kmeans (line 6)
label = ceil(rand(1, dn(D)) * k);

Error in Main (line 18)
[label, means] = kmeans(Data, k, maxIter

Mo Chen

Mo Chen (view profile)

Mo Chen

Mo Chen (view profile)

Carry on

MATLAB Release
MATLAB 7.14 (R2012a)
Acknowledgements

Inspired by: Kmeans Clustering

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video