summaryrefslogtreecommitdiff
path: root/2606/CH10/EX10.18/ex10_18.sce
blob: d0196544f0bc6ebfd5c05c480b00a3c4ce53a915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Page Number: 10.34
//Example 10.18
clc;
//Given
A=0.2D-3; //V
A1=A/1.414;

T=2D-6; //s
n=2*1D-15; //W/Hz


//Pe=Q(z)
//where
x=(A1*A1*T)/(n);
z=sqrt(x);
Pe=(1/2)*erfc(z/1.414);
disp(Pe,'Error probability:');