Rayleigh BER in Simulink I'm using the Rayleigh Channel in Simulink but I can't calculate the BER. I always get values near to 0.5 which doesn't make sense (even using high EbNo values). [In this simulink model][1] I found a trick to calculate the BER but I also would like to use delays and attenuation vectors.

Any idea of how to calculate the BER? I have tried also with a Matlab script comparing bit to bit but I also get values near 0.5.

Edit1:
I can calculate the BER but it is always around 0.5, regardless EbNo values. I'm using this simulink model.

Edit2:
I'm using delay and attenuation vector so I have problems with the array dimensions:
After the AWGN block you need to divide with the channel coefficient value before you apply the BPSK demodulator. 

If you click on the Rayleigh block it gives the option to enable a "Complex Gain Path Port". You can use this output to accomplish the division mentioned above.

Instead of division you can also multiply the output of the AWGN block with the complex-conjugate of the channel gain.