Products & Services Solutions Academia Support User Community Company

Learn more about Filter Design Toolbox   

coeffs - Coefficients for filters

Syntax

s = coeffs(ha)
s = coeffs(hd)
s = coeffs(hm)

Description

The next sections describe common coeffs operation with adaptive, discrete-time, and multirate filters.

Adaptive Filters

s = coeffs(ha) returns a structure s containing the coefficients of adaptive filter ha. These are the instantaneous filter coefficients available at the time you use the function.

Discrete-Time Filters

s = coeffs(hd) returns a structure s that contains the coefficients of discrete-time filter hd.

Multirate Filters

s = coeffs(hm) returns s, a structure containing the coefficients of discrete-time filter hm. CIC-based filters do not have coefficients and this function does not work with constructors like mfilt.cicdecim.

Examples

coefficients works the same way for all filters. This example uses a multirate filter hm to demonstrate the function.

hm=mfilt.firdecim(3)
 
hm =
 
     FilterStructure: 'Direct-Form FIR Polyphase Decimator'
          Arithmetic: 'double'                             
           Numerator: [1x72 double]                        
    DecimationFactor: 3                                    
    PersistentMemory: false   

s=coeffs(hm)

s = 

    Numerator: [1x72 double]

The filter coefficients may be extracted by typing s.Numerator at the command prompt.

See Also

adaptfilt, freqz, grpdelay, impz, info, phasez, stepz, zerophase, zplane

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

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