At times, finding the correct SNR (Signal to Noise Ratio) for the desired BER (Bit Error Rate) in a communication channel becomes a pain. Its easy to tell that the BER goes on improving as we increase the SNR level of the input signal before it makes out on the channel.
The Bit Error Probability is given as
where
The BER now is the function of the Probability Density Function and can be summed as the integral of the product of Bit Error Probability and probability density function.
If anyone does remember the Gaussian Distribution, the probability density function extends from the mid-half to either sides towards infinity. Applying similar theory we get,
where,
Anyways here is the catch. If you want to compare how these signals behave as a function of SNR in Rayleigh Channel or in plain old AWGN (Additive White Gaussian Noise) channel, here is the matlab code for it.
http://dl.dropbox.com/u/15048456/Final Code/task3.m
http://dl.dropbox.com/u/15048456/Final Code/rayleigh_modulator.m
Just put those files together in the same active or working directory while compiling and executing them. Watch and learn