File Exchange

image thumbnail

Low Energy Adaptive Clustering Hierarchy protocol (LEACH)

version 1.0 (13.3 KB) by

Low Energy Adaptive Clustering Hierarchy (LEACH) cluster based routing protocol in WSN

4.85714
7 Ratings

76 Downloads

Updated

View License

Low Energy Adaptive Clustering Hierarchy (LEACH) cluster based routing protocol in WSN

Comments and Ratings (12)

FAIZAN AHMAD

Warning: Name is nonexistent or not a directory: Cluster
> In path (line 109)
In addpath (line 88)
In newCluster (line 60)
In start (line 16)
Error using feval
Undefined function 'leach' for input arguments of type 'struct'.

Error in newCluster (line 61)
[nodeArch, clusterNode] = feval(clusterFun, clusterModel, clusterFunParam); % execute the cluster
function

Error in start (line 16)
clusterModel = newCluster(netArch, nodeArch, 'leach', r, p);

YUHONG LIU

noor ali

please how ican calculte the number of nodes belong to each cluster

kermit

kermit (view profile)

Helpful, in leach.m file, when find the cluster head,
nodeArch.node(1,1).G = round(1/p)-1;
should change to
nodeArch.node(1,i).G = round(1/p)-1;?
Right?

chNo = cluster.no(i);
distance = cluster.distance(i);
energy = nodeArch.node(chNo).energy;
% energy for aggregation the data + energy for transfering to BS
if(distance >= d0)
nodeArch.node(chNo).energy = energy - ...
((ETX+EDA) * packetLength + Emp * packetLength * (distance ^ 4));
else
nodeArch.node(chNo).energy = energy - ...
((ETX+EDA) * packetLength + Efs * packetLength * (distance ^ 2));
end
nodeArch.node(chNo).energy = nodeArch.node(chNo).energy - ...
ctrPacketLength * ERX * round(nodeArch.numNode / clusterModel.numCluster);

I used the above energy dissipation model for my publication.
Can you help me by providing a citation of the model?

It would be extremely helpful if you can do so within tomorow

Amit

Amit (view profile)

Xinlu

Xinlu (view profile)

It is very helpful.

RAHUL VIJAYAN

GOOD

Irsyad

Irsyad (view profile)

how i can get the code of QLEACH (the improvement of LEACH). Q is quadran where clustering processing just in each quadran.

steps to implement the protocol in MATLAB is not available, if the steps are provided it will be more useful

Nada

Nada (view profile)

MATLAB Release
MATLAB 7.13 (R2011b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today