summaryrefslogtreecommitdiff
path: root/752/CH12/EX12.4.3/12_4_3.sce
blob: d925f0ae24005ef7cd0fd774499d0897a58138c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;
//page no 421
//problem no 12.4.3
SNR=9;//SNR in dB
//conversion of dB to power ratio
p=10^(9/10);
// for Polar
Pbe1=1/2 * erfc(sqrt(7.94/2));
disp(Pbe1);
// for Unipolar
Pbe2=1/2 * erfc(sqrt(7.94)/2);
disp(Pbe2);