Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top