主要内容

滤波器设计

设计和分析 FIR 和 IIR 滤波器

您可以使用 DSP System Toolbox™ 函数、App 和模块来设计与分析各种数字 FIR 和 IIR 滤波器。其中一些滤波器包括高级滤波器,如奈奎斯特滤波器、半带滤波器、CIC 滤波器、高级等波纹滤波器和拟线性相位 IIR 滤波器。

设计方法根据滤波器设计设定来计算滤波器系数。某些模块(如 Bandpass IIR Filter DesignBandstop IIR Filter Design)具有可调滤波器设定,因此,您可以在仿真运行时更改滤波器设定并重新设计滤波器。

App

滤波器构建工具Design filters starting with frequency and magnitude specifications (filterBuilder)

实时编辑器任务

设计滤波器Design a digital filter or implement a System object in the Live Editor (自 R2021b 起)

函数

全部展开

filterDesignerOpen Filter Designer app
filterBuilderInteractive filter design
filterAnalyzerAnalyze filters with Filter Analyzer app (自 R2024a 起)
designfiltDesign digital filter
toMultirateCreate multirate filter System object from digital FIR filter object (自 R2025a 起)
butter巴特沃斯 IIR 数字滤波器设计
cheby1Chebyshev Type I filter using specification object
cheby2Chebyshev Type II filter using specification object
designApply design method to filter specification object
designmethodsMethods available for designing filter from specification object
designoptionsShow all options available for specified design
designoptsValid input arguments and values for specification object and method
ellipElliptic filter using specification object
equirippleEquiripple single-rate FIR filter from specification object
freqsampReal or complex frequency-sampled FIR filter from specification object
helpHelp for design method with filter specification
setspecsSpecifications for filter specification object
validstructuresStructures for specification object with design method
fdesignFilter design specification object
fdesign.bandpassBandpass filter design specification object
fdesign.bandstopBandstop filter design specification object
fdesign.highpassHighpass filter specification object
fdesign.lowpassLowpass filter specification
fdesign.decimatorDecimator filter specification object
fdesign.interpolatorInterpolator filter specification
fdesign.rsrcRational-factor sample-rate converter specification
fdesign.arbgrpdelayArbitrary group delay filter specification object
fdesign.arbmagArbitrary response magnitude filter specification object
fdesign.arbmagnphaseArbitrary response magnitude and phase filter specification object
fdesign.ciccompCIC compensator filter specification object
fdesign.combIIR comb filter specification object
fdesign.differentiatorDifferentiator filter specification object
fdesign.fracdelayFractional delay filter specification object
fdesign.halfbandHalfband filter specification object
fdesign.hilbertHilbert filter specification object
fdesign.isinchpInverse sinc highpass filter specification
fdesign.isinclpInverse sinc lowpass filter specification
fdesign.notchNotch filter specification
fdesign.nyquistNyquist filter specification
fdesign.peakPeak filter specification
fdesign.polysrcConstruct polynomial sample-rate converter (POLYSRC) filter designer
designLowpassFIRDesign and implement lowpass FIR filter (自 R2023b 起)
designHighpassFIRDesign and implement highpass FIR filter (自 R2023b 起)
designBandpassFIRDesign and implement bandpass FIR filter (自 R2023b 起)
designBandstopFIRDesign and implement bandstop FIR filter (自 R2023b 起)
designHalfbandFIRDesign and implement halfband FIR filter (自 R2023b 起)
designMultirateFIRDesign and implement antialiasing and anti-imaging lowpass FIR filter
designMultistageDecimatorMultistage decimator design
designMultistageInterpolatorMultistage interpolator design
designRateConverterDesign multistage bandlimited sample-rate converter (自 R2024b 起)
designFracDelayFIRDesign and implement band-limited fractional delay FIR filter (自 R2021a 起)
fircbandConstrained-band equiripple FIR filter
firceqripConstrained equiripple FIR filter
fireqintEquiripple FIR interpolators
firgrParks-McClellan FIR filter
firlpnormLeast P-norm optimal FIR filter
firlsLeast-square linear-phase FIR filter design
firminphaseMinimum-phase FIR spectral factor
firnyquistLowpass Nyquist (Lth-band) FIR filter
firpr2chfbTwo-channel FIR filter bank for perfect reconstruction
ifirInterpolated FIR filter design
normalizefreqSwitch filter specification between normalized frequency and absolute frequency
designLowpassIIRDesign and implement lowpass IIR filter (自 R2023b 起)
designHighpassIIRDesign and implement highpass IIR filter (自 R2023b 起)
designBandpassIIRDesign and implement bandpass IIR filter (自 R2023b 起)
designBandstopIIRDesign and implement bandstop IIR filter (自 R2023b 起)
designHalfbandIIRDesign and implement halfband IIR filter in the form of a coupled allpass filter (自 R2023b 起)
designNotchPeakIIRDesign and implement high-order Butterworth notch or peak IIR filter (自 R2023b 起)
ca2tfConvert coupled allpass filter to transfer function form
cl2tfConvert coupled allpass lattice to transfer function form
iircombIIR comb notch or peak filter
iirgrpdelayOptimal IIR filter with prescribed group-delay
iirlpnormLeast P-norm optimal IIR filter
iirlpnormcConstrained least Pth-norm optimal IIR filter
normalizefreqSwitch filter specification between normalized frequency and absolute frequency

对象

全部展开

dsp.DifferentiatorDirect form FIR fullband differentiator filter
dsp.HampelFilterFilter outliers using Hampel identifier
dsp.HighpassFilterFIR or IIR highpass filter
dsp.LowpassFilterFIR or IIR lowpass filter
dsp.MedianFilterMedian filter
dsp.NotchPeakFilterSecond-order tunable notching and peaking IIR filter
dsp.VariableBandwidthFIRFilterVariable bandwidth FIR filter
dsp.VariableBandwidthIIRFilterVariable bandwidth IIR filter
dsp.CICCompensationDecimatorCompensate for CIC decimation filter using FIR decimator
dsp.CICCompensationInterpolatorCompensate for CIC interpolation filter using FIR interpolator
dsp.FIRHalfbandDecimatorDecimate signal using polyphase FIR halfband filter
dsp.FIRHalfbandInterpolatorInterpolate signal using polyphase FIR halfband filter
dsp.IIRHalfbandDecimatorDecimate by factor of two using polyphase IIR
dsp.IIRHalfbandInterpolatorInterpolate by a factor of two using polyphase IIR

模块

全部展开

Analog Filter DesignDesign and implement analog filters
Digital Filter DesignDesign and implement digital FIR and IIR filters
Lowpass FIR Filter DesignDesign lowpass FIR filter with tunable filter specifications (自 R2023b 起)
Lowpass IIR Filter DesignDesign lowpass IIR filter with tunable filter specifications (自 R2023b 起)
Highpass FIR Filter DesignDesign highpass FIR filter with tunable filter specifications (自 R2023b 起)
Highpass IIR Filter DesignDesign highpass IIR filter with tunable filter specifications (自 R2023b 起)
Bandpass FIR Filter DesignDesign bandpass FIR filter with tunable filter specifications (自 R2023b 起)
Bandpass IIR Filter DesignDesign bandpass IIR filter with tunable filter specifications (自 R2023a 起)
Bandstop FIR Filter DesignDesign bandstop FIR filter with tunable filter specifications (自 R2023b 起)
Bandstop IIR Filter DesignDesign bandstop IIR filter with tunable filter specifications (自 R2023a 起)
Differentiator FilterDirect form FIR fullband differentiator filter
Hampel FilterFilter outliers using Hampel identifier
Highpass FilterDesign FIR or IIR highpass filter
Lowpass FilterDesign FIR or IIR lowpass filter
Median FilterMedian filter
Notch-Peak FilterDesign second-order tunable notching and peaking IIR filter
Variable Bandwidth FIR FilterDesign tunable bandwidth FIR filter
Variable Bandwidth IIR FilterDesign tunable bandwidth IIR filter

主题

精选示例