# iir_maxflat (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info Download Help (Windows Only)

Owning Class: filter design

Requires: MathScript RT Module

## Syntax

[b, a] = iir_maxflat(m, n, w)

[b, a] = iir_maxflat(m, 'sym', w)

[b, a, b1, b2] = iir_maxflat(m, n, w)

[b, a, b1, b2] = iir_maxflat(m, 'sym', w)

Legacy Name: `maxflat`

## Description

Designs a maximally flat (generalized Butterworth) digital filter.

Examples

## Inputs

Name Description
m Specifies the order of the numerator. m is a positive integer.
n Specifies the order of the denominator. n is a positive integer.
w Specifies the cutoff frequency. w is a real number between 0 and 1.
'sym' Specifies a symmetric FIR Butterworth filter. If you specify 'sym', m must be an even number.

## Outputs

Name Description
b Returns the numerator of the filter under design. b is the forward filter coefficient of order m. b is a real vector.
a Returns the denominator of the filter under design. a is the backward filter coefficient of order n. a is a real vector.
b1 Contains all the zeros at -1. b = conv(b1, b2).
b2 Contains all the other zeros.

## Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

## Examples

m = 8;
n = 6;
w = 0.6;
[b, a, b1, b2] = iir_maxflat(m, n, w)