Main Content

getFilter

Return biquad filter object with design parameters set

Description

example

biquad = getFilter(obj) returns a dsp.BiquadFilter object, biquad. The SOSMatrix and ScaleValues properties of the biquad filter object are set as specified by the obj System object™.

Use getFilter for the design capabilities of the obj System object and the processing capabilities of the dsp.BiquadFilter System object.

Examples

collapse all

Create an octaveFilter System object™. Call getFilter on your object to return a dsp.BiquadFilter object with design parameters specified by your octaveFilter System object.

octFilt = octaveFilter;
biquad = getFilter(octFilt)
biquad = 
  dsp.BiquadFilter with properties:

                   Structure: 'Direct form II transposed'
             SOSMatrixSource: 'Property'
                   SOSMatrix: [3x6 double]
                 ScaleValues: 1
           InitialConditions: 0
    OptimizeUnityScaleValues: true

  Show all properties

Create a weightingFilter System object™.

weightFilt = weightingFilter;

Call getFilter on your object to return a dsp.BiquadFilter object with design parameters specified by your weightingFilter System object. Use fvtool to visualize the biquad filter.

biquad = getFilter(weightFilt)
biquad = 
  dsp.BiquadFilter with properties:

                   Structure: 'Direct form II transposed'
             SOSMatrixSource: 'Property'
                   SOSMatrix: [3x6 double]
                 ScaleValues: [4x1 double]
           InitialConditions: 0
    OptimizeUnityScaleValues: true

  Show all properties

fvtool(biquad,'FrequencyScale','log')

Input Arguments

collapse all

System object that you want to get a biquad filter object from.

Output Arguments

collapse all

Introduced in R2016b