MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Sharjeel
on 8 May 2012

Hi, I wanted to simulate the wireless sensor networks and than implement different routing protocols on this simulation. I am not getting how I can simulate a basic simulation . I am not finding anything appropriate to start with. can any one please give a direction to start a simulation for wireless network. I have also got some wireless network code but they are very complex

*No products are associated with this question.*

Answer by Thomas
on 8 May 2012

Accepted answer

You might be better off deciding on one (or at the most two) routing protocols for wireless sensor networks.. LEACH is a good algorithm to start with and can be implemented fairly easily in MATLAB. There are many spins off to LEACH such a VLEACH

http://en.wikipedia.org/wiki/Low_Energy_Adaptive_Clustering_Hierarchy

File exchange has an implementation of LEACH

http://www.mathworks.com/matlabcentral/fileexchange/25853-wireless-networks

Hopefully these should be enough to get you started..

## 5 Comments

## Walter Roberson

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/37726#comment_78176

Yes, wireless network code *is* complex. You are not going to be able to create a simple simulation for it.

See the MATLAB File Exchange for wireless network code.

## Heba Essam

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/37726#comment_100110

Well, using Simulink would make WSN simulation easier and professional. You can use the documentation of Simulink on Mathworks website. Besides, I've a scientific paper which says that simulating a WSN using simulink is possible and easy. I can send it to you so, you can contact its authors.

By the way, I'm trying the same also. whenever I know something new, i'll inform you

## Valentina

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/37726#comment_101362

I am looking for the similar thing, and I would be grateful if you could share that paper with me as well.

## Mandeep

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/37726#comment_173749

hi!, i m also doing work on

WSNinMATLAB. plz send me paper,i would be very grateful.## Aman Gaur

Direct link to this comment:http://in.mathworks.com/matlabcentral/answers/37726#comment_175461

hi heba,could u send the paper as well....