A definite advantage of the FFT is that it reduces considerably the computation in the convolution sum.
Question:
y[n] 1.755y[n 1] + 0.81y[n 2] = x[n] + 0.5x[n]
be the difference equation representing an IIR filter with input x[n] and output y[n]. Assume the initial conditions are zero, and the input is x[n] = u[n] u[n 50]. Use MATLAB to obtain the filter output.
(a) Compute using filterthe first 40 values of the impulse response h[n], and call them hÌ[n], an approximate of h[n]. Compute the filter output yÌ[n] using the FFT as indicated above. In this case, we are approximating the IIR filter by and FIR filter of length 40. Plot the input and the output. Use FFTs of length 128.
(b) Suppose now that we do not want to approximate h[n], so consider the following procedure. Find the transfer function of the IIR filter, say H(z) = B(z)/A(z), and if X(z) is the Z-transform of the input then
Compute as before the FFT for x[n], of length 128, call it X[k], and compute the 128-length of the coefficients of B(z) and A(z) to obtain DFTs B[k] and A[k]. Multiplying X[k] by B[k] and dividing by A[k], all of length 128, results in a sequence of length 128 that should correspond to Y[k], the DFT of y[n]. Compute the inverse FFT to get y[n] and plot it.
(c) Use filterto solve the difference equation and obtain y[n] for x[n] = u[n] u[n 50]. Considering this the exact solution, calculate the error with respect to the other responses in (a) and (b). Comment on your results.
Step by Step Answer: