滤波器设计
您可以使用 DSP System Toolbox™ 函数、App 和模块来设计与分析各种数字 FIR 和 IIR 滤波器。其中一些滤波器包括高级滤波器,如奈奎斯特滤波器、半带滤波器、CIC 滤波器、高级等波纹滤波器和拟线性相位 IIR 滤波器。
设计方法根据滤波器设计设定来计算滤波器系数。某些模块(如 Bandpass IIR Filter Design 和 Bandstop IIR Filter Design)具有可调滤波器设定,因此,您可以在仿真运行时更改滤波器设定并重新设计滤波器。
App
| 滤波器构建工具 | 从频率和幅值设定开始设计滤波器 (filterBuilder) |
实时编辑器任务
| 设计滤波器 | Design a digital filter or implement a System object in the Live Editor (自 R2021b 起) |
函数
filterDesigner | 打开滤波器设计工具 |
filterBuilder | (To be removed) Interactive filter design |
filterAnalyzer | Analyze filters with Filter Analyzer app (自 R2024a 起) |
designfilt | Design digital filter |
toMultirate | Create multirate filter System object from digital FIR filter object (自 R2025a 起) |
butter | 巴特沃斯 IIR 数字滤波器设计 |
cheby1 | Chebyshev Type I filter using specification object |
cheby2 | Chebyshev Type II filter using specification object |
design | Apply design method to filter specification object |
designmethods | Methods available for designing filter from specification object |
designoptions | Show all options available for specified design |
designopts | Valid input arguments and values for specification object and method |
ellip | Elliptic filter using specification object |
equiripple | Equiripple single-rate FIR filter from specification object |
freqsamp | Real or complex frequency-sampled FIR filter from specification object |
help | Help for design method with filter specification |
setspecs | Specifications for filter specification object |
validstructures | Structures for specification object with design method |
fdesign | Filter design specification object |
fdesign.bandpass | Bandpass filter design specification object |
fdesign.bandstop | Bandstop filter design specification object |
fdesign.highpass | Highpass filter specification object |
fdesign.lowpass | Lowpass filter specification |
fdesign.decimator | Decimator filter specification object |
fdesign.interpolator | Interpolator filter specification |
fdesign.rsrc | Rational-factor sample-rate converter specification |
fdesign.arbgrpdelay | Arbitrary group delay filter specification object |
fdesign.arbmag | Arbitrary response magnitude filter specification object |
fdesign.arbmagnphase | Arbitrary response magnitude and phase filter specification object |
fdesign.ciccomp | CIC compensator filter specification object |
fdesign.comb | IIR comb filter specification object |
fdesign.differentiator | Differentiator filter specification object |
fdesign.fracdelay | Fractional delay filter specification object |
fdesign.halfband | Halfband filter specification object |
fdesign.hilbert | 希尔伯特滤波器设定对象 |
fdesign.isinchp | Inverse sinc highpass filter specification |
fdesign.isinclp | Inverse sinc lowpass filter specification |
fdesign.notch | Notch filter specification |
fdesign.nyquist | Nyquist filter specification |
fdesign.peak | Peak filter specification |
fdesign.polysrc | Construct polynomial sample-rate converter (POLYSRC) filter designer |
designLowpassFIR | Design and implement lowpass FIR filter (自 R2023b 起) |
designHighpassFIR | Design and implement highpass FIR filter (自 R2023b 起) |
designBandpassFIR | Design and implement bandpass FIR filter (自 R2023b 起) |
designBandstopFIR | Design and implement bandstop FIR filter (自 R2023b 起) |
designHalfbandFIR | Design and implement halfband FIR filter (自 R2023b 起) |
designMultirateFIR | Design and implement antialiasing and anti-imaging lowpass FIR filter |
designMultistageDecimator | Multistage decimator design |
designMultistageInterpolator | Multistage interpolator design |
designRateConverter | Design multistage bandlimited sample-rate converter (自 R2024b 起) |
designFracDelayFIR | Design and implement band-limited fractional delay FIR filter |
fircband | Constrained-band equiripple FIR filter |
firceqrip | Constrained equiripple FIR filter |
fireqint | Equiripple FIR interpolators |
firgr | Generalized Remez FIR filter design |
firlpnorm | Least P-norm optimal FIR filter |
firls | Least-square linear-phase FIR filter design |
firminphase | Minimum-phase FIR spectral factor |
firnyquist | Lowpass Nyquist (Lth-band) FIR filter |
firpr2chfb | Two-channel FIR filter bank for perfect reconstruction |
ifir | Interpolated FIR filter design |
normalizefreq | Switch filter specification between normalized frequency and absolute frequency |
designLowpassIIR | Design and implement lowpass IIR filter (自 R2023b 起) |
designHighpassIIR | Design and implement highpass IIR filter (自 R2023b 起) |
designBandpassIIR | Design and implement bandpass IIR filter (自 R2023b 起) |
designBandstopIIR | Design and implement bandstop IIR filter (自 R2023b 起) |
designHalfbandIIR | Design and implement halfband IIR filter in the form of a coupled allpass filter (自 R2023b 起) |
designNotchPeakIIR | Design and implement high-order Butterworth notch or peak IIR filter (自 R2023b 起) |
ca2tf | Convert coupled allpass filter to transfer function form |
cl2tf | Convert coupled allpass lattice to transfer function form |
iircomb | IIR comb notch or peak filter |
iirgrpdelay | Optimal IIR filter with prescribed group-delay |
iirlpnorm | Least P-norm optimal IIR filter |
iirlpnormc | Constrained least Pth-norm optimal IIR filter |
normalizefreq | Switch filter specification between normalized frequency and absolute frequency |
对象
dsp.Differentiator | Direct form FIR fullband differentiator filter |
dsp.HampelFilter | Filter outliers using Hampel identifier |
dsp.HighpassFilter | FIR or IIR highpass filter |
dsp.LowpassFilter | FIR or IIR lowpass filter |
dsp.MedianFilter | Median filter |
dsp.NotchPeakFilter | Second-order tunable notching and peaking IIR filter |
dsp.VariableBandwidthFIRFilter | Variable bandwidth FIR filter |
dsp.VariableBandwidthIIRFilter | Variable bandwidth IIR filter |
dsp.CICCompensationDecimator | Compensate for CIC decimation filter using FIR decimator |
dsp.CICCompensationInterpolator | Compensate for CIC interpolation filter using FIR interpolator |
dsp.FIRHalfbandDecimator | Decimate signal using polyphase FIR halfband filter |
dsp.FIRHalfbandInterpolator | Interpolate signal using polyphase FIR halfband filter |
dsp.IIRHalfbandDecimator | Decimate by factor of two using polyphase IIR |
dsp.IIRHalfbandInterpolator | Interpolate by a factor of two using polyphase IIR |
模块
| Analog Filter Design | 设计和实现模拟滤波器 |
| Digital Filter Design | Design and implement digital FIR and IIR filters using Filter Designer app |
| Lowpass FIR Filter Design | Design lowpass FIR filter with tunable filter specifications (自 R2023b 起) |
| Lowpass IIR Filter Design | Design lowpass IIR filter with tunable filter specifications (自 R2023b 起) |
| Highpass FIR Filter Design | Design highpass FIR filter with tunable filter specifications (自 R2023b 起) |
| Highpass IIR Filter Design | Design highpass IIR filter with tunable filter specifications (自 R2023b 起) |
| Bandpass FIR Filter Design | Design bandpass FIR filter with tunable filter specifications (自 R2023b 起) |
| Bandpass IIR Filter Design | Design bandpass IIR filter with tunable filter specifications (自 R2023a 起) |
| Bandstop FIR Filter Design | Design bandstop FIR filter with tunable filter specifications (自 R2023b 起) |
| Bandstop IIR Filter Design | Design bandstop IIR filter with tunable filter specifications (自 R2023a 起) |
| Differentiator Filter | Direct form FIR fullband differentiator filter |
| Hampel Filter | Filter outliers using Hampel identifier |
| Highpass Filter | Design FIR or IIR highpass filter |
| Lowpass Filter | 设计 FIR 或 IIR 低通滤波器 |
| Median Filter | Median filter |
| Notch-Peak Filter | Design second-order tunable notching and peaking IIR filter |
| Variable Bandwidth FIR Filter | Design tunable bandwidth FIR filter |
| Variable Bandwidth IIR Filter | Design tunable bandwidth IIR filter |
主题
- 使用滤波器设计工具
使用滤波器设计工具作为强大而方便的图形工具来设计和分析滤波器。
- Design a Filter in Fdesign — Process Overview
Learn how to analyze, design, and implement filters in MATLAB® and Simulink®.
- Lowpass FIR Filter Design
This example shows how to design a lowpass FIR filter using
fdesign. - Lowpass Filter Design in MATLAB
This example shows how to design lowpass filters.
- Controlling Design Specifications in Lowpass FIR Design
This example shows how to control the filter order, passband ripple, stopband attenuation, and transition region width of a lowpass FIR filter.
- Minimax FIR Filter Design
This example shows how to use some of the key features of the generalized Remez FIR filter design function.
- Designing Filters with Non-Equiripple Stopband
This example shows how to design lowpass filters with stopbands that are not equiripple.
- 设计并实现滤波器
设计一个数字低通滤波器,并将其纳入到您的模型中,以仿真低频噪声的存在。
- Minimizing Lowpass FIR Filter Length
This example shows how to minimize the number coefficients, by designing minimum-phase or minimum-order filters.
- 参考资料 - 高级滤波器
建议的关于高级滤波器设计主题的阅读资料和资源。
精选示例
IIR Halfband Stages in Multistage Filter Design
Discusses IIR halfband stages in multistage decimators and interpolators.
Classic IIR Filter Design
Design classic IIR filters. The example initially focuses on the scenario where critical design parameter is the cutoff frequency at which the power of the filter decays to half (–3 dB) the nominal passband value.
Design Peak and Notch Filters
Design peak and notch filters. Filters that peak or notch at a certain frequency retain or eliminate a particular frequency component of a signal. The design parameters that you can set for such filters are the frequency at which you want the peak or notch and the 3-dB bandwidth or the Q factor. Using these specifications and by increasing the filter order, you can design filters that more closely approximate an ideal filter.
Arbitrary Magnitude and Phase Filter Design
Design filters with customized magnitude and phase specifications. Many filter design problems focus on the magnitude response only, while assuming a linear phase response through symmetry. In some cases, however, the desired filter needs to satisfy constraints on both magnitude and phase.
Least Pth-Norm Optimal FIR Filter Design
Design least Pth-norm FIR filters with the firlpnorm function. This function uses a least-Pth unconstrained optimization algorithm to design FIR filters with arbitrary magnitude response.
Least Pth-Norm Optimal IIR Filter Design
Design optimal IIR filters with arbitrary magnitude response using the least-Pth unconstrained optimization algorithm.
FIR Nyquist (L-th band) Filter Design
Design lowpass FIR Nyquist filters. It also compares these filters with raised cosine and square root raised cosine filters. These filters are widely used in pulse-shaping for digital transmission systems. They also find application in interpolation/decimation and filter banks.
Design of Decimators and Interpolators
Design filters for decimation and interpolation of discrete sequences.
IIR Filter Design Given a Prescribed Group Delay
Design arbitrary group delay filters using the designfilt. This designer uses a least-Pth constrained optimization algorithm to design allpass IIR filters that meet a prescribed group delay.
Fractional Delay Filters Using Farrow Structures
Use Farrow structures to design digital fractional delay filters. Digital fractional delay filters are useful tools to fine-tune the sampling instants of signals. They are typically found in the synchronization of digital modems where the delay parameter varies over time. This example illustrates why the Farrow structure is a popular method for implementing time-varying FIR fractional delay filters.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)










