getFilter

Return biquad filter object with design parameters set

Syntax

biquad = getFilter(obj)

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)

Create a weightingFilter System object™ and visualize the frequency response.

weightFilt = weightingFilter;
visualize(weightFilt)

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)
fvtool(biquad,'FrequencyScale','log')

Input Arguments

collapse all

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

Output Arguments

collapse all

Object of the dsp.BiquadFilter System object.

Introduced in R2016b