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

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

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.

댓글을 달려면 로그인하십시오.

 채택된 답변

  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개)

카테고리

도움말 센터File Exchange에서 Wireless Communications에 대해 자세히 알아보기

질문:

2015년 6월 8일

답변:

2015년 6월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by