Dec 23, 2008 #1 A 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
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
Feb 4, 2009 #2 F farzad_m Junior Member level 2 Joined Sep 26, 2006 Messages 24 Helped 6 Reputation 12 Reaction score 1 Trophy points 1,283 Activity points 1,434 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
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