Introduction - If you have any usage issues, please Google them yourself
Matlab example simulating a BPSK transmission and reception in Rayleigh channel. The script performs the following
(a) Generate random binary sequence of +1’s and -1’s.
(b) Multiply the symbols with the channel and then add white Gaussian noise.
(c) At the receiver, equalize (divide) the received symbols with the known channel
(d) Perform hard decision decoding and count the bit errors
(e) Repeat for multiple values of and plot the simulation and theoretical results.
The theoretical description provided in
http://www.dsplog.com/2008/08/10/ber-bpsk-rayleigh-channel/