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.

equiripple

Equiripple single-rate FIR filter from specification object

Syntax

hd = design(d,'equiripple')
hd = design(d,'equiripple',Name,Value)

Description

hd = design(d,'equiripple') designs an equiripple FIR digital filter using the specifications supplied in the object d. Equiripple filter designs minimize the maximum ripple in the passbands and stopbands.

hd = design(d,'equiripple',Name,Value) returns an equiripple FIR filter where you specify design options as Name,Value pairs.

To determine the available design options, use designopts with the specification object and the design method as input arguments as shown.

designopts(d,'method')

For complete help about using equiripple, refer to the command line help system. For example, to get specific information about using equiripple with d, the specification object, enter the following at the MATLAB prompt.

help(d,'equiripple')

Examples

collapse all

Create a lowpass equiripple filter. Assume the data is sampled at 10 kHz. The passband frequency is 500 Hz and the stopband frequency of 700 Hz. The desired passband ripple is 1 dB with 60 dB of stopband attenuation. Use FVTool to display the magnitude response of the filter.

Fs = 10000;

Hd = fdesign.lowpass('Fp,Fst,Ap,Ast',500,700,1,60,Fs);
d = design(Hd,'equiripple');

fvtool(d)

Design a lowpass equiripple filter with direct-form transposed structure and a density factor of 20.

df = design(Hd,'equiripple','FilterStructure','dffirt','DensityFactor',20);

fvtool(df)

See Also

Apps

Functions

Introduced in R2009a

Was this topic helpful?