please help me for Rayleigh

Status
Not open for further replies.

aliazmat

Banned
Joined
Mar 14, 2008
Messages
76
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Activity points
0
I have following code transmitting one bit data over rayleigh,

this is not giving correct result even if I use 100 dB SNR

snr_db=10;
snr_linear =10.^(snr_db/10);

transmit_bit=1;

h=[randn(1,1)+j*randn(1,1)]; %channel gain
sigma=1/sqrt(2*snr_linear);
noise=[randn(1,1)+j*randn(1,1)]*sigma;
rx=transmit_bit*h+noise;
detected_bit=(mean(rx,1)>=0)*2-1
 

because your detector is wrong.
How did you come up with this detector???
it should be (conj(h).*rx>=0)*2-1 for coherent detection
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…