FUNCTION REFERENCE

filtfilt

Zero-phase filtering.

Zero-phase filtering.

Syntax

y = filtfilt(b, a, x)

Syntax

y = filtfilt(sos, g, x)

Filters forward and backward. A row vector x is filtered along the row; a matrix x is filtered column by column. x needs more than 3 times the filter order samples. The second form takes an SOS matrix with 1 to 64 sections (6 columns) and a gain g: a scalar or one value per section plus one. A single 6-element row is read as one SOS section when its 4th element is 1 and g has at most 2 elements.

Example

y = filtfilt([0.5 0.5], 1, [1 2 3 4 5 6])   % y = 1 2 3 4 5 6

Differences from MATLAB: Finite input only. Complex data and complex b, a are supported for the transfer-function form; SOS input must be real. SOS results not checked against MATLAB yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.