summaryrefslogtreecommitdiff
path: root/2582/CH3/EX3.4/Ex3_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2582/CH3/EX3.4/Ex3_4.sce')
-rwxr-xr-x2582/CH3/EX3.4/Ex3_4.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2582/CH3/EX3.4/Ex3_4.sce b/2582/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..227ef9364
--- /dev/null
+++ b/2582/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,16 @@
+//Ex 3.4
+clc;clear;close;
+format('v',6);
+FT1=1;//Filter Transmission
+FT2=0.99;//Filter Transmission
+FT3=0.9;//Filter Transmission
+FT4=0.1;//Filter Transmission
+A1=-20*log10(FT1);//dB
+A2=-20*log10(FT2);//dB
+A3=-20*log10(FT3);//dB
+A4=-20*log10(FT4);//dB
+disp(A1,"For filter transmission=1, Attenuation(dB)");
+disp(A2,"For filter transmission=0.99, Attenuation(dB)");
+disp(A3,"For filter transmission=0.9, Attenuation(dB)");
+disp(A4,"For filter transmission=0.1, Attenuation(dB)");
+//Answer in the book is wrong for 0.99 filter transmission.