K-Means Clustering in Wireess Sensor Networks

I wish to implement a K-means algorithm in MATLAB which takes the locations (in the 2-D Coordinate system ) of the nodes as an input and after calculating the best "K" ( k=3 )cases of centroid, gives the locations of the K-centroids as the output.
Kindly help me generate a code for the same or please let me know if anyone knows where i can find a similar one.
Thank you
Regards

Answers (2)

if you have the Stats toolbox. If you do not then you can find kmeans contributions in the File Exchange.
the above code is for data mining not wsn

Products

Asked:

on 11 Feb 2014

Answered:

on 2 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!