02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Frequency Sampling Design Techniques 351<br />

Frequency Samples: M=40,T1=0.39<br />

Impulse Response<br />

1<br />

0.2<br />

Hr(k)<br />

0.39<br />

h(n)<br />

0.1<br />

0<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

−0.1<br />

0 10 20 30 40<br />

n<br />

Amplitude Response<br />

Magnitude Response<br />

1<br />

0<br />

Hr(w)<br />

0.39<br />

Decibels<br />

43<br />

0<br />

0 0.2 0.3 1<br />

frequency in π units<br />

0 0.2 0.3 1<br />

frequency in π units<br />

FIGURE 7.28 Optimum frequency design method: T 1 =0.39<br />

□ EXAMPLE 7.16 Let us revisit our lowpass filter design in Example 7.14. We will solve it using two<br />

samples in the transition band so that we can get a better stopband attenuation.<br />

Solution<br />

Let us choose M =60sothat there are two samples in the transition band. Let<br />

the values of these transition band samples be T 1 and T 2. Then H r (ω) isgiven<br />

by<br />

H (ω) =[1,...,1 ,T<br />

} {{ } 1,T 2, 0,...,0 ,T<br />

} {{ } 2,T 1, 1,...,1 ]<br />

} {{ }<br />

7 ones<br />

43 zeros<br />

6 ones<br />

From tables in [22, Appendix B] T 1 =0.5925 and T 2 =0.1099. Using these<br />

values, we use MATLAB to compute h (n).<br />

>> M = 60; alpha = (M-1)/2; l = 0:M-1; wl = (2*pi/M)*l;<br />

>> Hrs = [ones(1,7),0.5925,0.1099,zeros(1,43),0.1099,0.5925,ones(1,6)];<br />

>> Hdr = [1,1,0,0]; wdl = [0,0.2,0.3,1];<br />

>> k1 = 0:floor((M-1)/2); k2 = floor((M-1)/2)+1:M-1;<br />

>> angH = [-alpha*(2*pi)/M*k1, alpha*(2*pi)/M*(M-k2)];<br />

>> H = Hrs.*exp(j*angH); h = real(ifft(H,M));<br />

>> [db,mag,pha,grd,w] = freqz_m(h,1); [Hr,ww,a,L] = Hr_Type2(h);<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!