Purpose
The purpose of this lab is to help you understand the relations between the z-transform, H(z), the pole-zero plot, the frequency response, H(w), and the impulse response, h[n].
Assignment (Methods of Implementation of these functions is below in the Methods section)
The assignment is to implement the three functions, ZPLOT, FPLOT and IPLOT.
Your functions should produce plots as close as possible to those shown here.
Your functions should not produce any text output nor should they call Matlab's clf command.
Only your fplot function may call Matlab's subplot function, and it must only use subplot(2, 1, 1) and subplot(2, 1, 2).
Please download the following two functions:
fizplot.m will basically call your functions zplot, fplot and iplot to place the frequency response, plot-zero plot and impulse response on a single figure:
function fizplot(b, a)
% FIZPLOT Plot Frequency response, pole-zero plot and impulse response of the filter H(z)
Just put fizplot in the same directory as your functions. Here's what fizplot([1 2 2], [0 1 .8]) should look like: