i have created a wireless sensor grid in matlab. i want to deploy the nodes in them. how can i do that? Please help

2 次查看(过去 30 天)
i have to create a wireless sensor network 4*4 grid with 100 nodes randomly deployed in each cluster. i want to then select the cluster head from each cluster on the basis of highest energy priority. how i can do that. please help
  1 个评论
Walter Roberson
Walter Roberson 2015-6-8
We have no idea what your data representation is. We have no idea how you represent energy measurements. We have no idea what would be necessary in order to loop over your simulated nodes.
I think you are asking about something you should be researching, namely how can nodes "elect" a cluster head. This Answers forum is about how to use MATLAB, not about how to find research papers on networking protocols.

请先登录,再进行评论。

采纳的回答

Stalin Samuel
Stalin Samuel 2015-6-9
  1. For exaple consider 4*4 grid in matlab graph
  2. by using the axis position randomly assign 100 nodes &100 enegry values
  3. Then select the cluster head%example code
no_mob_nodes =N
for i = 1:str2double(no_mob_nodes)
start_x = A1(i)
start_y = A2(i)
node{i}.position = [start_x start_y];
node{i}.Energy = 0;
node{i}.Req = 0;
node{i}.f_trate = 0;
node{i}.band = 0;
node{i}.rate = 0;
end

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by