{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hwB35 - ENEE 241 02 HOMEWORK ASSIGNMENT 35 Due Wed 05/07...

This preview shows pages 1–2. Sign up to view the full content.

ENEE 241 02 * HOMEWORK ASSIGNMENT 35 Due Wed 05/07 Use the MATLAB script below to generate the coefficient vector b of a bandpass FIR filter of order M = 44. f1 = 0.19 + .03*rand(1) ; f2 = 0.34 + .03*rand(1) ; F = [0 f1 f1+0.03 f2 f2+0.03 0.5]*2 ; G = [1 1 0 0 1 1] ; b = firpm(44,F,G) ; (i) (2 pts.) Plot (using stems) the coefficient vector b against the index vector [0 : 44]. (ii) (4 pts.) Using FFT , compute the the frequency response H ( e ) at 1,000 uniformly spaced frequencies in [0 , 2 π ). Plot the amplitude and phase response against f = ω/ (2 π ) (two separate plots). (iii) (3 pts.) By examining the amplitude response, verify that the passband and stopband edges (four frequencies in total) are consistent with the randomly generated values f1 , f2 and the specification F . (iv) (3 pts.) Determine the passband ripple δ and stopband attenuation 1 . (v) (4 pts.) Is the sequence x [ · ] defined by x [ n ] = 2 . 0 cos(0 . 16 πn + 1 . 1) + 1 . 3 cos(0 . 32 πn - 0 . 3) , n Z periodic? If so, what is its fundamental period? (vi) (4 pts.) Using frequency response values computed in (ii) above, determine the output y [ · ]

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 2

hwB35 - ENEE 241 02 HOMEWORK ASSIGNMENT 35 Due Wed 05/07...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online