filter — filters a data sequence using a digital filter
[y,zf] = filter(num,den,x [,zi])
real vector : the coefficients of the filter numerator in decreasing power order, or a polynomial.
real vector : the coefficients of the filter denominator in decreasing power order, or a polynomial.
real row vector : the input signal
real row vector of length
max(length(a),length(b))-1
: the initial
condition relative to a "direct form II transposed" state
space representation. The default value is a vector filled
with zeros.
real row vector : the filtered signal.
real row vector : the final state. It can be used to filter a next batch of the input signal.
This function filters a data sequence using a digital filter using a "direct form II transposed" implementation