summaryrefslogtreecommitdiff
path: root/1409/CH8/EX8.23.1/8_23_i.sce
blob: b1ffbfb9fad06b6b5830791d2f944bb947bd1777 (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
clc;
//page no 8-62
//Example 8.23
Q=125;
fi=465;//in kHz
disp("Image frequencies and rejection at 1MHz");
fs=1000;//in kHz
fsi=[fs+(2*fi)]*10^-3;
disp(+'MHz',fsi,'Image frequency is');
rho=(fsi/(fs*10^-3))-((fs*10^-3)/fsi);
disp(rho,'rho=');
alpha=sqrt(1+(Q^2*rho^2));
//rounding alpha to 176.48
alpha1=176.48;
alphadB=20*log10(alpha1);
disp(+'dB',alphadB,'Image frequency rejection ratio is');
disp("Image frequencies and rejection at 30MHz")
fs1=30;//in MHz
fsi1=fs1+(2*fi*10^-3);
disp(+'MHz',fsi1,'Image frequency is');
rho1=(fsi1/fs1)-(fs1/fsi1);
disp(rho1,'rho=');
alpha2=sqrt(1+(Q^2*rho1^2));
alphadB1=20*log10(alpha2);
disp(+'dB',alphadB1,'Image frequency rejection ratio is');