28 June 2017 9 6K Report

I use following code to simulate a QPSK signal through 3-path Rayleigh channel,

signal_r=2*(rand([Ls,1])>0.5)-1;

signal_i=2*(rand([Ls,1])>0.5)-1;

QPSK=signal_r+1i*signal_i;

Es=((QPSK)' *(QPSK) ) / Ls;

N0=Es/10^(SNR_dB/10);

h=sqrt(P/2)*(randn(1,3)+1i*randn(1,3));

fading=conv(QPSK , h);

noise=sqrt(N0/4)*( randn(length(fading),1)+1i*randn(length(fading),1) );

received = fading+noise;

Is it right?

Why do I need to multiply (randn(1,3)+1i*randn(1,3)) by sqrt(P/2)? The denominator is always 2?  How do I define P ?

h is called  impulse response of Rayleigh channel? 3 paths are also called 3 taps?

Thank you for your answer.

More Ryan Kao's questions See All
Similar questions and discussions