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

Hilbert Transformer, frequency sampling design : M = 51<br />

Amplitude response<br />

1<br />

0.39<br />

0<br />

0 0.2 0.4 0.6 0.8 1<br />

frequency in π units<br />

1<br />

Impulse response<br />

0.5<br />

h(n)<br />

0<br />

−0.5<br />

−1<br />

0 25 50<br />

n<br />

FIGURE 7.33 Digital Hilbert transformer design plots in Example 7.20<br />

window to minimize ripples near the band-edge frequencies. This function’s<br />

syntax also has several forms including:<br />

• h = fir2(N,f,m) designs an Nth-order (N = M−1) lowpass FIR filter<br />

and returns the impulse response in vector h. The desired magnitude<br />

response of the filter is supplied in vectors f and m, which must be<br />

of the same length. The vector f contains normalized frequencies in<br />

the range from 0 to 1, where 1 corresponds to π rad/sample. The first<br />

value of f must be 0 and the last value 1. The vector m, contains the<br />

samples of the desired magnitude response at the values specified in f.<br />

The desired frequency response is then interpolated onto a dense, evenly<br />

spaced grid of length 512. Thus, this syntax corresponds to the naive<br />

design method.<br />

• h = fir2(N,f,m,window) uses the vector window of length N+1 obtained<br />

from one of the specified MATLAB window function. The default<br />

window function used is the Hamming window.<br />

• h = fir2(N,f,m,npt) or h = fir2(N,f,m,npt,window) specifies the<br />

number of points, npt, for the grid onto which fir2 interpolates the<br />

frequency response. The default npt value is 512.<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!