Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

total energy of nodes

$
0
0
please the last E generated is showing as the total, i want to
> find the sum of E generated from 1 to 10.
> for j=1:1:10
> distance=sqrt((S(j).xd-sink.x)^2 + (S(j).yd-sink.y)^2);
> E=PL*(ETX+Efs.*(sqrt(distance)^2))
> end
> Etotal=sum(E)

Viewing all articles
Browse latest Browse all 19628

Trending Articles