i am working on ESEP protocol in MATLAB which is the advance version of SEP and LEACH protocol. i have run the code of LEACH and it is giving output. but i dont know that
-how nodes are behaving like a sensor network and doing the work of sensing,sending?
-are the properties of WSN inbuilt in MATLAB?
-where the methods used like[S(i).xd,S(i).type] in code are declared and is the work of xd and type are defined in MATLAB??