MATLAB: Does the FILTFILT documentation not mention the effects of truncation, while providing a short input sequence to an IIR filter

firiirsamplesSignal Processing Toolbox

I am using the FILTFILT function to plot the magnitude response. I observe a truncated output when using a short delta sequence.
However, if I increase the filter order or the length of the input sequence, I get an improved response. The documentation does not provide any information regarding this.

Best Answer

Documentation on the FILTFILT function is missing important information regarding its performance.
Here is additional information on the FILTFILT function.
The length of the input 'x' must be more than three times the filter order, defined as max(length(b)-1,length(a)-1). The input should be sufficiently large so that the impulse is correctly represented.
As an example, for a fifth order filter, if the input sequence is a delta sequence, the '1' should appear anywhere within the first 15 samples.
Related Question