File Exchange

image thumbnail

Wireless Sensor Networks Simulation

version 1.0.0 (43.8 KB) by amin nazari
LEACH Protocol.


Updated 20 Dec 2018

View License

Wireless Sensor Networks Simulation
The tutorial video is available in

Cite As

amin nazari (2021). Wireless Sensor Networks Simulation (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (29)

Adarsh Chaunal

Yusnaidi Md Yusof

Easy to understand guide even I've to learn it from your Arabic talk! thanks.

amazone amazone

Thank you so much!

RK Naojinglen Meitei

Regina Samosir

Excellent code. SO easy to understand. Thanks a lot sir! wishing the paper but its okayy

Jai Sidharth M

maytham azeez

What is the routing protocol used in this code?
and What is the wireless protocol used in this code?

David Magdy

need code .

amin nazari

I add a function for code for calculating the energy and the lifetime and some other parameters in Wireless Sensor Networks. in the following link:

you can add it in leach folder a call it after then, the main loop.

asmaa ali

hope you share with us the rest of the code for calculating the energy and the lifetime as well. many thanks

asmaa ali

hi, excellent code, where is the other code for calculating the energy?

neda mazluomi

thanks a lot

excellent code and Thanks

ardalan kaveh ersi


Excellent code!!! Thanks a lot.

saba h

Mori Nar

Awesome and thank you for this great job

fatemeh pirooz

Shima Rezaei


Thanks a lot for this code


Thanks a lot for this code

ali hosseini

thank you a lot
this cod is very useful

Preetha Jaikishen

Very Good

smaaneh rezaie

yuting huang

zahra aghapour

that is great and useful ,thank you sir

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: WSN Simualation in matlab


Community Treasure Hunt

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

Start Hunting!