blob: f967df937033917bb70aab4b95bc8b4e90e8830b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
clc;
//page 588
//problem 11.8
//Energy aasosciated with each bit Eb = 5 * 10^(-8) J
Eb = 5 * 10^(-8);
//Power Spectral Density n = 2 * 10^(-9) W/Hz
n = 2 * 10^(-9);
//No of symbols M
M = 16
//No of bits N
N = log2(M);
//Error limit for 16-PSK is P_16_PSK
P_16_PSK = erfc(((N*Eb*(%pi)^2)/(((M)^2)*n))^0.5);
disp('Upper limit of error probability of 16 PSK system is '+string(P_16_PSK));
//Error limit for 16-QASK is P_16_QASK
P_16_QASK = 2*erfc(((0.4*Eb)/(n))^0.5);
disp('Upper limit of error probability of 16 QASK system is '+string(P_16_QASK));
//Error limit for 16-FSK is P_16_FSK
P_16_FSK = ((2^4 - 1)/2)*erfc(((N*Eb)/(2*n))^0.5);
disp('Upper limit of error probability of 16 FSK system is '+string(P_16_FSK)+', negligibly small');
|