- %% Upper bound: R. Venkataramanan, Lent 2018, 3F4 Examples Paper 2
- %% (Question 5), CUED.
- %% Approximation: J.G. Proakis and M. Salehi, 2000, Contemporary
- %% Communication Systems using MATLAB (Equations
- %% 7.3.18 and 7.3.19), Brooks/Cole.
- ber_ub = 2 * qfunc(sqrt(EbN0 * log2(M)) * sin(pi / M));
- ber_ap = 2 * qfunc(sqrt(EbN0 * log2(M) * 2) * sin(pi / M)) / log2(M);
- semilogy(EbN0_db, ber_ub, 'b', 'LineWidth', 1);
- semilogy(EbN0_db, ber_ap, 'g', 'LineWidth', 1);
- legend('Simulated', 'Upper bound', 'Approximation');