Hi , i'm new to matlab and i have trouble with simulation a signal with Bpsk modulation in lognormal channel. Can you explain for me please ! Thank you for reading

1 view (last 30 days)
EbNo = (0:2:20)';
P = 10.^(EbNo/10);
R = 2;
GT = 2.^(R) - 1;
xi = 10/log(10);
mu = 10^(3/10);
sigma = 10^(8/10);
N = 10^6;
G = P.*lognrnd(mu./xi,sigma./xi,1,N);
OP_s = sum(G < GT,2)/N;
OP_t = qfunc((mu -10*log10(GT./P))./sigma);
semilogy(EbNo,OP_s,'o',EbNo,OP_t,'-')
xlabel('E_b/N_0 [dB]');
ylabel('Probability to stop');
legend('S','T');
set(gcf,'color','white');

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!