Add pathloss to signal in Matlab

Thread Starter

farfella

Joined Mar 26, 2017
1
Hello,

I simulate a transmission channel in Matlab. I want to add pathloss (PL=100 dB) to the signal TX.
here is the code edited

PL=100;
snrdb=10;
snr=10^(snrdb/10);
L=length(TX1);
REC1=TX1+sqrt(1/(2*snr))*(randn(1,L)+1i*randn(1,L));

can anyone help regarding the pathloss effect!
 
Top