filter

Version:

Applies a one-dimensional filter of the input over the specific dimension.

Syntax

y = filter(b, a, x)
[y, final] = filter(b, a, x, initial)
[y, final] = filter(b, a, x, dim)
[y, final] = filter(b, a, x, initial, dim)

b

Forward filter coefficients. b is a vector.

a

Backward filter coefficients. If the first backward filter coefficient does not equal 1, MathScript normalizes the elements in a by the first backward filter coefficient. a is a vector.

x

Signal to filter. x is a real or complex vector or array of any dimension.

dim

Dimension along which to apply the filter. dim can be in a range of 1 to the maximum supported array dimension (32). If you do not specify dim, the function works with the first dimension whose size is not equal to 1.

initial

Initial conditions of the system. Use [ ] to set the initial conditions to zeros.

y

Filtered signal. y is a real or complex vector or array of any dimension.

final

Final conditions of the system.

x = 0:0.01:1
b = [1]
a = [1, 1, 1]
y = filter(b, a, x)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices