summaryrefslogtreecommitdiff
path: root/2606/CH8/EX8.4/ex8_4.sce
blob: 018fc0e2132568df91c84c0f2c267c496bd9b5d9 (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
31
//Page Number: 8.8
//Example 8.4
clc;

//Given,
R=50;
osnr=0;
SNRo=(10^(osnr/10));
disp(SNRo,'Output SNR');

//As Pni=KTB
K=1.38D-23;
T=290;
B=5D+5;
Pni=K*T*B;
disp('W',Pni,'Input noise power');

//Psi=V^2/R
//Given V=5*10^-6V
V=0.5D-6;
Psi=(V^2)/R;
disp('W',Psi,'Signal Power Input');

isnr=(Psi/Pni);
disp(isnr,'Input SNR');

F=(isnr/SNRo);
disp(F,'Noise Factor');

NF=10*log10(F);
disp('dB',NF,'Noise figure');