K-Means Clustering in Wireess Sensor Networks

4 views (last 30 days)
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)

Walter Roberson
Walter Roberson on 11 Feb 2014
if you have the Stats toolbox. If you do not then you can find kmeans contributions in the File Exchange.

anurag sharma
anurag sharma on 2 Apr 2019
the above code is for data mining not wsn

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!