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
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
2015년 6월 9일
- For exaple consider 4*4 grid in matlab graph
- by using the axis position randomly assign 100 nodes &100 enegry values
- 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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!