Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Toolbox   

dfilt.dfsymfir - Discrete-time, direct-form symmetric FIR filter

Syntax

Hd = dfilt.dfsymfir(b)
Hd = dfilt.dfsymfir

Description

Hd = dfilt.dfsymfir(b) returns a discrete-time, direct-form symmetric FIR filter, Hd, with numerator coefficients b.

Hd = dfilt.dfsymfir returns a default, discrete-time, direct-form symmetric FIR filter, Hd, with b=1. This filter passes the input through to the output unchanged.

Diagram of a symmetric even order finite impulse response filter

Diagram of a symmetric odd order finite impulse response filter

The resulting filter states column vector for the odd number of coefficients example above is

Examples

Odd Order

Specify a fifth-order direct-form symmetric FIR filter structure for a dfilt object, Hd, with the following code:

b = [-0.008 0.06 0.44 0.44 0.06 -0.008];
Hd = dfilt.dfsymfir(b)
Hd =
FilterStructure: 'Direct-Form Symmetric FIR'
 Numerator: [-0.0080 0.0600 0.4400 0.4400 0.0600 -0.0080]
PersistentMemory: false

Even Order

Specify a fourth-order direct-form symmetric FIR filter structure for a dfilt object, Hd, with the following code:

b = [-0.01 0.1 0.8 0.1 -0.01];
Hd = dfilt.dfsymfir(b)
Hd =
FilterStructure: 'Direct-Form Symmetric FIR'
  Numerator: [-0.0100 0.1000 0.8000 0.1000 -0.0100]
PersistentMemory: false

See Also

dfilt, dfilt.dfasymfir, dfilt.dffir, dfilt.dffirt

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS