Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
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 comentario
Walter Roberson
Walter Roberson el 8 de Jun. de 2015
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.

Iniciar sesión para comentar.

Respuesta aceptada

Stalin Samuel
Stalin Samuel el 9 de Jun. de 2015
  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

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by