How to find a residual energy for this nodes ?

sir, i have attached my code below please go through it and run this code. In that i have highlighted like this
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Finding the residual energy for neighborhood nodes
I3 = nearestneighbour(X(cluster),add_1 , 'r', 50)
n3 = length(I3);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
sir, by using 'I3' i can get nearest neighbor nodes to that cluster head and now i want to find the residual energy for those nodes, so please help me in this case.
Note: After running my code you will get "I3" that is nearest neighbor nodes of 'X' and now i want find the residual energy of that nodes.

6 commentaires

Geoff Hayes
Geoff Hayes le 8 Jan 2015
Arul - how are you defining residual energy of a node?
Why is your code called mathwork_final_test_1? Is this a question on your final exam for a course? Or homework? If so, tag it as such.
Matlab111
Matlab111 le 8 Jan 2015
Geoff Hayes-i'm defining residual energy as '1' in my code, Initially i initialize energy as "Eo=1"- it's like some random energy.
Matlab111
Matlab111 le 8 Jan 2015
Modifié(e) : Matlab111 le 8 Jan 2015
Image Analyst- no sir, it's my new project and it's my life i have to complete my project please try to help me....
Matlab111
Matlab111 le 9 Jan 2015
Modifié(e) : Matlab111 le 9 Jan 2015
sir,Geoff Hayes,Image Analyst- This's the final problem i'm facing in my code so please try to help me sir.
Matlab111
Matlab111 le 11 Jan 2015
Modifié(e) : Matlab111 le 11 Jan 2015
please reply me, i'm waiting for your answer....

Réponses (0)

Cette question est clôturée.

Clôturé :

le 28 Août 2015

Community Treasure Hunt

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

Start Hunting!

Translated by