summaryrefslogtreecommitdiff
path: root/40/CH7/EX7.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /40/CH7/EX7.12
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '40/CH7/EX7.12')
-rwxr-xr-x40/CH7/EX7.12/Exa_7_12.jpgbin0 -> 18242 bytes
-rwxr-xr-x40/CH7/EX7.12/Exa_7_12.sce28
2 files changed, 28 insertions, 0 deletions
diff --git a/40/CH7/EX7.12/Exa_7_12.jpg b/40/CH7/EX7.12/Exa_7_12.jpg
new file mode 100755
index 000000000..5bc821696
--- /dev/null
+++ b/40/CH7/EX7.12/Exa_7_12.jpg
Binary files differ
diff --git a/40/CH7/EX7.12/Exa_7_12.sce b/40/CH7/EX7.12/Exa_7_12.sce
new file mode 100755
index 000000000..5a246a91c
--- /dev/null
+++ b/40/CH7/EX7.12/Exa_7_12.sce
@@ -0,0 +1,28 @@
+//Anti Imaging Filter considerations
+Ap=0.5;//passband attenuation
+fp=20;//passband edge frequency
+As=60;//stopband attenuation
+S=42.1;
+fs=S-fp;//stopband edge frequency
+e=sqrt(10^(0.1*Ap)-1);
+e1=sqrt(10^(0.1*As)-1);
+n=(log10(e1/e))/(log10(fs/fp));
+n=ceil(n)//design of nth order butworth filter
+//(b)Assuming Zero-order hold sampling
+S1=176.4;
+fs1=S1-fp;
+Ap=0.316;
+e2=sqrt(10^(0.1*Ap)-1);
+n1=(log10(e1/e2))/(log(fs1/fp));//new order of butworth filter
+n1=ceil(n1)
+f=0:100;
+x=abs(sinc(f*%pi/S));
+f1=0:500;
+x1=abs(sinc(f1*%pi/S1));
+a=gca();
+subplot(211);
+plot2d(f,x);
+xtitle("spectra under normal sampling condition","f(kHZ)","sinc(f/s1)");
+subplot(212);
+plot2d(f1,x1);
+xtitle("spectra under over sampling condition","f(kHZ)","sinc(f/s1)"); \ No newline at end of file