From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 40/CH7/EX7.12/Exa_7_12.jpg | Bin 0 -> 18242 bytes 40/CH7/EX7.12/Exa_7_12.sce | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 40/CH7/EX7.12/Exa_7_12.jpg create mode 100755 40/CH7/EX7.12/Exa_7_12.sce (limited to '40/CH7/EX7.12') 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 Binary files /dev/null and b/40/CH7/EX7.12/Exa_7_12.jpg 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 -- cgit