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

This problem is known as an optimization problem, and it is solved using<br />

linear programming techniques. We demonstrate the effect of transition<br />

band sample variation on the design using the following example.<br />

□ EXAMPLE 7.15 Using the optimum design method, design a better lowpass filter of Example<br />

7.14.<br />

Solution<br />

Let us choose M = 40sothat we have one sample in the transition band<br />

△<br />

0.2π > Hrs = [ones(1,5),0.5,zeros(1,29),0.5,ones(1,4)];<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);<br />

>> h = real(ifft(H,M));<br />

From the plots of this design in Figure 7.27, we observe that the minimum<br />

stopband attenuation is now 30 dB, which is better than the naive design attenuation<br />

but is still not at the acceptable level of 50 dB. The best value for T 1<br />

was obtained by varying it manually (although more efficient linear programming<br />

techniques are available, these were not used in this case), and the near<br />

optimum solution was found at T 1 =0.39. The resulting filter is a obtained<br />

using the following MATLAB script.<br />

% T1 = 0.39<br />

>> M = 40; alpha = (M-1)/2;<br />

>> Hrs = [ones(1,5),0.39,zeros(1,29),0.39,ones(1,4)];<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 />

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!