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 353<br />

Bandpass: M=40,T1=0.5941, T2=0.109<br />

1<br />

0.4<br />

0.2<br />

Impulse Response<br />

Hr(k)<br />

0.59<br />

h(n)<br />

0<br />

0.109<br />

0<br />

0 0.2 0.35 0.65 0.8 1<br />

frequency in π units<br />

−0.2<br />

−0.4<br />

0 10 20 30 40<br />

n<br />

Amplitude Response<br />

Magnitude Response<br />

1<br />

0<br />

Hr(w)<br />

0.59<br />

Decibels<br />

60<br />

0.109<br />

0<br />

0 0.2 0.35 0.65 0.8 1<br />

frequency in π units<br />

0 0.2 0.35 0.65 0.8 1<br />

frequency in π units<br />

FIGURE 7.30 Bandpass filter design plots in Example 7.17<br />

The optimum values of T 1 and T 2 for M =40and seven samples in the passband<br />

[23, Appendix B] are<br />

The MATLAB script is<br />

T 1 =0.109021, T 2 =0.59417456<br />

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

>> T1 = 0.109021; T2 = 0.59417456;<br />

>> Hrs=[zeros(1,5),T1,T2,ones(1,7),T2,T1,zeros(1,9),T1,T2,ones(1,7),T2,T1,zeros(1,4)];<br />

>> Hdr = [0,0,1,1,0,0]; wdl = [0,0.2,0.35,0.65,0.8,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 />

The plots in Figure 7.30 show an acceptable bandpass filter design.<br />

□<br />

□ EXAMPLE 7.18 Design the following highpass filter:<br />

Stopband edge: ω s =0.6π A s =50dB<br />

Passband edge: ω p =0.8π R p =1dB<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!