summaryrefslogtreecommitdiff
path: root/2606/CH10/EX10.17/ex10_17.sce
blob: f7c104c19bd31278e6b05bebd5080819589f4a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Page Number: 10.33
//Example 10.17
clc;
//Given
A=0.2D-3; //V
T=2D-6; //s
n=2*1D-15; //W/Hz


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