Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Static or time-varying FIR filter

The `dsp.FIRFilter`

System
object™ filters each channel of the input using static or time-varying FIR filter
implementations.

To filter each channel of the input:

Create the

`dsp.FIRFilter`

object and set its properties.Call the object with arguments, as if it were a function.

To learn more about how System objects work, see What Are System Objects? (MATLAB).

`fir = dsp.FIRFilter`

`fir = dsp.FIRFilter(num)`

`fir = dsp.FIRFilter(Name,Value)`

returns a finite impulse
response (FIR) filter object, `fir`

= dsp.FIRFilter`fir`

, which independently filters each
channel of the input over time using a specified FIR filter implementation.

returns an FIR filter System
object, `fir`

= dsp.FIRFilter(`num`

)`fir`

, with the `Numerator`

property
set to `num`

.

returns an FIR filter System
object, `fir`

= dsp.FIRFilter(`Name,Value`

)`fir`

, with each property set to the specified
value.

**For versions earlier than R2016b, use the step
function to run the System object algorithm. The arguments to
step are the object you created, followed by
the arguments shown in this section.**

**For example, y = step(obj,x) and y = obj(x) perform equivalent operations.**

`y = fir(x)`

`y = fir(x,coeff)`

To use an object function, specify the
System
object as the first input argument. For
example, to release system resources of a System
object named `obj`

, use
this syntax:

release(obj)

This object implements the algorithm, inputs, and outputs described on the Discrete FIR Filter block reference page. The object properties correspond to the block parameters.