The FIRFilter
object filters each channel
of the input using static or timevarying FIR filter implementations.
To filter each channel of the input:
Define and set up your FIR filter. See Construction.
Call step
to filter each channel
of the input according to the properties of dsp.FIRFilter
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the 
fir = dsp.FIRFilter
returns
a default FIR filter object, fir
, which independently
filters each channel of the input over successive calls to the step
method,
using a specified FIR filter implementation. This System object supports
variablesize input.
fir = dsp.FIRFilter('
returns an FIR filter system object, PropertyName
',PropertyValue
,
...)fir
,
with each property set to the specified value.

Filter structure Specify the filter structure.
 

Source of filter coefficients Specify the source of the filter coefficients as one of  This applies when you set the  

Source of filter coefficients Specify the source of the Lattice filter coefficients as one
of  This applies when you set the  

Numerator coefficients Specify the filter coefficients as a real or complex numeric
row vector. This property applies when you set the  

Reflection coefficients of lattice filter structure Specify the reflection coefficients of a lattice filter as a
real or complex numeric row vector. This property applies when you
set the  

Initial conditions for the FIR filter Specify the initial conditions of the filter states. The number of states or delay elements equals the number of reflection coefficients for the lattice structure, or the number of filter coefficients–1 for the other direct form structures. You can specify the initial conditions as a scalar, vector, or matrix. If you specify a scalar value, the FIR filter object initializes all delay elements in the filter to that value. If you specify a vector whose length equals the number of delay elements in the filter, each vector element specifies a unique initial condition for the corresponding delay element. The object applies the same vector of initial conditions to each channel of the input signal. If you specify a vector whose length equals the product of the number of input channels and the number of delay elements in the filter, each element specifies a unique initial condition for the corresponding delay element in the corresponding channel. If you specify a matrix with the same number of rows as the number of delay elements in the filter, and one column for each channel of the input signal, each element specifies a unique initial condition for the corresponding delay element in the corresponding channel. The default is 0. This property is tunable. 
freqz  Frequency response 
fvtool  Open filter visualization tool 
impz  Impulse response 
phasez  Unwrapped phase response 
reset  Reset internal states of FIR filter 
step  Filter input with FIR filter object 
More Analysis Methods for Filter System Objects.
Common to All System Objects  

clone  Create System object with same property values 
getNumInputs  Expected number of inputs to a System object 
getNumOutputs  Expected number of outputs of a System object 
isLocked  Check locked states of a System object (logical) 
release  Allow System object property value changes 
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.