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)
Show older comments
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');
2 Comments
Walter Roberson
on 17 Sep 2021
Please be more specific with your question. For example, we do not know if you are familiar with binary representation, or with the mathematics of logarithms.
Answers (0)
See Also
Categories
Find more on PHY Components in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!