added IIR2 coefficients and made matlab script a function