Main Content

Filter design specification object

Use the `fdesign`

function to create a filter design
specification object that contains the specifications for a filter, such as passband ripple,
stopband attenuation, and filter order. Then, use the `design`

function to design the filter from the filter design specifications
object. For an example, see Design of Lowpass Decimator.

Here is the workflow diagram that shows the simple procedure to design, analyze, and finally apply the filter on streaming data.

For more control options, see Filter Design Procedure. For a complete workflow, see Design a Filter in Fdesign — Process Overview.

returns a design specification object for the filter with a given
`designSpecs`

= fdesign.`response`

*response*.

specifies the variables to use that define your filter design. The filter design parameters
are applied to the filter design method you choose for your filter. The specification option
you choose determines which design methods apply to the `designSpecs`

= fdesign.`response`

(`spec`

)`fdesign`

object.

specifies the sample rate in Hz to use in the filter specifications. The sample rate scalar
must be the last input argument. If you specify a sample rate, all frequency specifications
are in Hz.`designSpecs`

= fdesign.`response`

(___,`Fs`

)

specifies the units for any magnitude specification you provide in the input
arguments.`designSpecs`

= fdesign.`response`

(___,`magunits`

)