FUNCTION REFERENCE
filter
Digital filter.
Digital filter.
Syntax
y = filter(b, a, x)Syntax
y = filter(b, a, x, zi)Syntax
[y, zf] = filter(b, a, x, zi, dim)Filters x with numerator b and denominator a. zi is the initial state ([] means zero). Pass zf as the next call's zi to filter in blocks.
Example
y = filter(1, [1 -0.5], [1 0 0 0]) % [1 0.5 0.25 0.125]Differences from MATLAB: dim must be 1 or 2. Complex coefficients, data and zi are supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.