From: QMW MAHMUD on
Hi there,
HOW CAN I MODEL THE COLLISION DETECTION MECHANISM IN MATLAB?COULD ANY1 PLZ GIVE ME THE CODE FOR THAT?
Basically at first I need to do the coding for back off algorithm,then I will do the CSMA algorithm.Firstly I need to build a software for random number generation,then I need to do the binomial distribution then the back off algorithm.Please if you have got any clue share with me .I need it very urgently.I will be highly grateful to anyone who can help me with this or u can contact me morsheduk(at)gmail(dot)com
From: Walter Roberson on
QMW MAHMUD wrote:

> HOW CAN I MODEL THE COLLISION DETECTION MECHANISM IN MATLAB?COULD ANY1
> PLZ GIVE ME THE CODE FOR THAT?
> Basically at first I need to do the coding for back off algorithm,then I
> will do the CSMA algorithm.Firstly I need to build a software for random
> number generation,then I need to do the binomial distribution then the
> back off algorithm.

Better go back and look again at the algorithm. The randomly generated numbers
should *not* have a binomial distribution: they need to be uniformly randomly
generated with a range that doubles with each collision (until step 10; search
for "truncated binary exponential backoff".)

> Please if you have got any clue share with me .I need
> it very urgently.I will be highly grateful to anyone who can help me
> with this or u can contact me morsheduk(at)gmail(dot)com

http://www.freepatentsonline.com/6298360.html


But really, you do not need to define your own random number generator. Using
Matlab's rand() function is fine. Just use floor(rand() * 2^N) where N is the
current truncation order. rand() will never output exactly 1, so rand * 2^N
will always be at least a hair less than 2^N at most, so after the floor()
operation the maximum value that can be generated would be (2^N)-1 which is
the desired range.
From: QMW MAHMUD on
Dear Sir,
Thank you very much.If you know of any source where I can get the coding in Matlab for the back off algorithm of Wi-fi (802.11),can you plz let me know.Thanks