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.

374 Chapter 7 FIR FILTER DESIGN<br />

0.6<br />

Impulse Response<br />

0.4<br />

0.2<br />

h(n)<br />

0<br />

−0.2<br />

−0.4<br />

−0.6<br />

0 25<br />

n<br />

1.5<br />

1.2<br />

Magnitude Response<br />

|H|<br />

0.6<br />

0.4<br />

0.1<br />

0<br />

0 0.1 0.2 0.3 0.4 0.5<br />

Normalized frequency f<br />

FIGURE 7.39 Plots of the differentiator in Example 7.27<br />

□ EXAMPLE 7.28 Finally, we design a Hilbert transformer over the band 0.05π ≤ ω ≤ 0.95π.<br />

Solution<br />

Since this is a wideband Hilbert transformer, we will choose an odd length for<br />

our filter (i.e., a Type-3 filter). Let us choose M =51. The MATLAB script is:<br />

>> f = [0.05,0.95]; m = [1 1]; h = firpm(50,f,m,’hilbert’);<br />

>> [db,mag,pha,grd,w] = freqz_m(h,[1]);<br />

>> subplot(2,1,1); stem([0:50],h); title(’Impulse Response’);<br />

>> xlabel(’n’); ylabel(’h(n)’); axis([0,50,-0.8,0.8])<br />

>> set(gca,’XTickMode’,’manual’,’XTick’,[0,50])<br />

>> set(gca,’YTickMode’,’manual’,’YTick’,[-0.8:0.2:0.8]);<br />

>> subplot(2,1,2); plot(w/pi,mag); title(’Magnitude Response’)<br />

>> xlabel(’frequency in pi units’); ylabel(’|H|’)<br />

>> set(gca,’XTickMode’,’manual’,’XTick’,[0,f,1])<br />

>> set(gca,’YTickMode’,’manual’,’YTick’,[0,1]);grid<br />

The plots of this Hilbert transformer are shown in Figure 7.40.<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!