Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A student wishes to plot the magnitude of the frequency response of a digital lo

ID: 2250123 • Letter: A

Question

A student wishes to plot the magnitude of the frequency response of a digital lowpass filter H(z) when given the filter's impulse response, hh. Which of the following procedures will achieve the desired plot. Pick the BEST answer. W = -pi:pi/100:pi; HH = freqz(hh,1, www); plot(ww, HH) ww = -pi:pi; HH = freqz(hh,1,w); plot(ww, abs(HH)) ww = -pi:pi/100:pi; HH = freqz(hh, ww); plot(ww , abs(HH)) ww = -pi:pi/100:pi; HH = freqz(hh,1,ww); plot(ww , abs(HH)) ww = -pi:pi/100:pi; HH = freqzoww, hh); plot(ww, abs(HH))

Explanation / Answer

The answer is

ww=-pi:(pi/100):pi;    

HH=freqz(hh,1,ww);

plot(ww,abs(HH))

option 4 is correct