selection of cluster head in wireless sensor networks

I have deployed 100 nodes in a network...now I have to randomly select 10 nodes as cluster heads(using Euclidean distance)..... ch1: random selection among 100 nodes...... ch2: calculate Euclidean distance from ch1 to all other nodes.among them pick the maximum value and choose that node as ch2.... ch3: take the next maximum value and calculate distance from ch3 to ch2 and also from ch3 to ch1.then check for the following condition if(dist>200)elect that node as ch3 else take the next maximum value and repeat the process.........the above process should be repeated for the selection of 10 cluster heads....can anyone help me in creating the LOOP..

3 Comments

Did you got this answer @sindhu... Can u help how to calculate the number of cluster head selection
Mam can u help me how to get number of cluster head nd i need to calculate fitness for that number cluster head
Mam can you please help me how to write matlab code for WSN by using cluster head

Sign in to comment.

Answers (0)

Categories

Asked:

on 12 Aug 2014

Commented:

on 2 Nov 2020

Community Treasure Hunt

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

Start Hunting!