An FIR filter has coefficients b = [ 1.0000 -0.6387 1.0214 0.8210 -0.7470 1.0920 ]
(a) Find H(z) for the filter and plot its frequency response (magnitude and phase) using subplot.
(b) For an input of x(t) =5 cos(100πt) sampled at fs=250Hz, plot the input and the output of the filter on a single plot. Use a sample input vector of 100 points. Annotate the plot showing the gain and phase shift caused by the filter. State how these values relate to the plot of part (a).
(c) Submit your source code and subplots.