Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

window (filter design method)

FIR filter using windowed impulse response

Syntax

h = window(d,'window',fcnhndl)
h = window(d,win)

Description

    Note:   This is a description of the overloaded method used in conjunction with fdesign to design a filter from a filter specification object. To access the window function gateway see window.

h = window(d,'window',fcnhndl) designs an FIR filter using the specifications in filter specification object d.

fcnhndl is a handle to a filter design function that returns a window vector, such as the hamming or blackman functions. fcnarg is an optional argument that returns a window. You pass the function to window. Refer to example 1 in the following section to see the function argument used to design the filter.

h = window(d,win) designs a filter using the vector you supply in win. The length of vector win must be the same as the impulse response of the filter, which is equal to the filter order plus one.

Examples

collapse all

Construct a lowpass filter specification object of order 10 with a cutoff frequency of 12 kHz. Use a sample rate of 48 kHz. Use a function handle to the kaiser function to provide the window.

d = fdesign.lowpass('n,fc',10,12000,48000);
Hd = window(d,'window',@kaiser);
fvtool(Hd)

Introduced in R2009a

Was this topic helpful?