Q9
Finding decision boundaries is the key for solving this problem. In the following, boundaries are
plotted for V.29.
, Q10
%MATLAB CODE:
clear
clc
close all
gamma_db = 0:.01:25;
gamma = 10.^(gamma_db/10);
M = 16;
Ps_exact=1-exp(2*log((1-((2*(sqrt(M)-1))/(sqrt(M)))*qfunc(sqrt((3*gamma)/(M-
1))))));
Ps_approx = ((4*(sqrt(M)-1))/sqrt(M))*qfunc(sqrt((3*gamma)/(M-1)));
semilogy(gamma_db, Ps_exact);
hold on
semilogy(gamma_db,Ps_approx,'r--');
grid on
legend('Ps_exact','Ps_approx')
Finding decision boundaries is the key for solving this problem. In the following, boundaries are
plotted for V.29.
, Q10
%MATLAB CODE:
clear
clc
close all
gamma_db = 0:.01:25;
gamma = 10.^(gamma_db/10);
M = 16;
Ps_exact=1-exp(2*log((1-((2*(sqrt(M)-1))/(sqrt(M)))*qfunc(sqrt((3*gamma)/(M-
1))))));
Ps_approx = ((4*(sqrt(M)-1))/sqrt(M))*qfunc(sqrt((3*gamma)/(M-1)));
semilogy(gamma_db, Ps_exact);
hold on
semilogy(gamma_db,Ps_approx,'r--');
grid on
legend('Ps_exact','Ps_approx')