summaryrefslogtreecommitdiff
path: root/3543/CH6/EX6.32/EX6_32.sce
blob: 30f992c5dcf38def7a948983f29c1a3e1deeb86e (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
32
// Example 6.32
// Calculation of signal to noise ratio
// Page no 495

clc;
clear;
close;

//Given data
I=152.3*10^-9;                     // Peak photocurrent
s=74.15*10^-20;                    // Shot noise 
t=4.94*10^-17;                    // Mean square shot noise current
F=10*log10(3);                    // Noise figure
B=15*10^6;                        // Bandwidth
T=298;                            // Room temperature
k=1.381*10^-23;                   // Boltzman constant
R=5*10^3;                         // Load resistance
e=1.602*10^-19;                  // Charge of an electron


// Signal to noise ratio
S=(I^2)/((2*e*B*(2+I))+(4*k*T*B*F)/R);
S=S*10^3;




//Displaying results in the command window            
printf("\n Signal to noise ratio = %0.2f  ",S);


// The answers vary due to round off error