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.

492 Chapter 9 SAMPLING RATE CONVERSION<br />

I = 2, L = 5<br />

I = 4, L = 5<br />

2<br />

4<br />

Magnitude<br />

1<br />

Magnitude<br />

3<br />

2<br />

1<br />

0<br />

0 0.5 1<br />

0<br />

0 0.25 1<br />

I = 8, L = 5<br />

I = 8, L = 10<br />

8<br />

8<br />

Magnitude<br />

6<br />

4<br />

Magnitude<br />

6<br />

4<br />

2<br />

2<br />

0<br />

0 0.125 1<br />

ωπ<br />

0<br />

0 0.125<br />

1<br />

ωπ<br />

FIGURE 9.13 Filter frequency responses in Example 9.5<br />

% (c) Interpolation by I = 8, L = 5;<br />

I = 8; [y,h] = interp(x,I); H = freqz(h,1,w); H = abs(H);<br />

subplot(2,2,3); plot(w/pi,H,’g’); axis([0,1,0,I+0.4]); ylabel(’Magnitude’);<br />

title(’I = 8, L = 5’,’fontsize’,TF); xlabel(’\omega/\pi’,’fontsize’,10)<br />

set(gca,’xtick’,[0,0.125,1]); set(gca,’ytick’,[0:2:I]);<br />

% (d) Interpolation by I = 8, L = 10;<br />

I = 8; [y,h] = interp(x,I,10); H = freqz(h,1,w); H = abs(H);<br />

subplot(2,2,4); plot(w/pi,H,’g’); axis([0,1,0,I+0.4]); ylabel(’Magnitude’);<br />

title(’I = 8, L = 10’,’fontsize’,TF); xlabel(’\omega/\pi’,’fontsize’,10)<br />

set(gca,’xtick’,[0,0.125,1]); set(gca,’ytick’,[0:2:I]);<br />

The frequency response plots are shown in Figure 9.13. The first three plots<br />

are for L = 5 and, as expected, the filters are all lowpass with passband edges<br />

approximately around π/I frequencies and the gain of I. Also note that the<br />

filters do not have sharp transitions and thus are not good approximations to<br />

the ideal filter. The last plot shows the response for L = 10, which indicates<br />

a more sharp transition, which is to be expected. Any value beyond L = 10<br />

results in an unstable filter design and hence should be avoided.<br />

□<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!