# kaiserwinord (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info

Owning Class: filter design

Requires: MathScript RT Module

## Syntax

[n, w, b, t] = kaiserwinord(f, a, d)

[n, w, b, t] = kaiserwinord(f, a, d, fs)

Legacy Name: `kaiserord`

## Description

Estimates the order of a Kaiser window.

Examples

## Inputs

Name Description
f Specifies the band edge frequencies. The length of f is twice the length of a minus 2. f is a vector in ascending order between 0 and fs/2.
a Specifies the desired amplitude of the FIR filter. a is a vector of zeros and ones.
d Specifies the allowable ripples for each band. d is a vector. length(d) must equal length(a).
fs Specifies the sampling frequency. The default value is 2.

## Outputs

Name Description
n Returns the approximate order.
w Returns the normalized frequency band edges.
b Returns the Kaiser window parameter, beta.
t Returns the type of the FIR filter.

## 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

f = [1500, 1700, 2000, 2100, 2300, 3000];
a = [1, 0, 1, 0];
d = [0.01, 0.1, 0.01, 0.1];
fs = 10000;
[n, w, b, t] = kaiserwinord(f, a, d, fs)