MATLAB: Calculating the impulse response

impulse response

Trying to find the best way to input the impulse response where h[n] = 1/4sinc(n-10/4), n=0,……..20 into matlab to plot the frequency response of the filter.

Best Answer

If you have a discrete filter and want to compute and plot the impulse response, use the impz function. For the transfer function, use the freqz function.