主要内容

equiripple

来自规格对象的等纹波单速率FIR滤波器

语法

equiFilt = design(d,'equiripple','SystemObject',true)
equiFilt = design(d,'equiripple',designoption,value,…,'SystemObject',true)

描述

equiFilt = design(d,'equiripple','SystemObject',true)使用对象中提供的规格设计了一个等纹波FIR数字滤波器d.等纹波滤波器设计最小化最大纹波在通带和阻带。

当你使用equiripple使用Nyquist过滤器规范对象,您可能会遇到过滤器设计不收敛的设计情况。收敛误差主要发生在较大的滤波器阶数,或较小的过渡宽度,或较大的阻带衰减。这些规范单独或组合都可能导致设计失败。有关更多信息,请参阅fdesign.nyquist联机帮助系统。

equiFilt = design(d,'equiripple',designoption,value,…,'SystemObject',true)返回一个等纹波FIR滤波器,其中您指定设计选项作为输入参数。

要确定可用的设计选项,请使用designopts使用规范对象和设计方法作为输入参数,如图所示。

designopts (d,“方法”)

有关使用的完整帮助equiripple,请参考命令行帮助系统。例如,获取有关使用的具体信息equirippled,即规范对象,在MATLAB提示符下输入以下内容。

帮助(d,“equiripple”)

例子

全部折叠

从一个半带滤波器规格对象设计一个单速率等纹波滤波器。请注意用于了解规范对象和方法的选项的help命令。
D = fdesign.halfband(“tw, ast”, 0.1, 80);designmethods (d,“Systemobject”,真正的)
支持fdesign类的系统对象的设计方法万博1manbetx。半带(TW,Ast):黄油椭圆irlinphase等纹kaiserwin
帮助(d,“equiripple”
设计一个等纹波FIR滤波器。HD = DESIGN(D, 'equiripple')设计一个由FDESIGN对象D指定的equiripple滤波器,并返回DFILT/MFILT对象HD。(d,…),“SystemObject”,true) implements the filter, HD, using a System object instead of a DFILT/MFILT object. HD = DESIGN(..., 'FilterStructure', STRUCTURE) returns a filter with the structure STRUCTURE. STRUCTURE is 'dffir' by default and can be any of the following: 'dffir' 'dffirt' 'dfsymfir' 'fftfir' Some of the listed structures may not be supported by System object filters. Type validstructures(D, 'equiripple', 'SystemObject', true) to get a list of structures supported by System objects. HD = DESIGN(..., 'MinPhase', MPHASE) designs a minimum-phase filter when MPHASE is TRUE. MPHASE is FALSE by default. HD = DESIGN(..., 'StopbandShape', SHAPE) designs a filter whose stopband has the shape defined by SHAPE. SHAPE can be 'flat', '1/f', or 'linear'. SHAPE is 'flat' by default. HD = DESIGN(..., 'StopbandDecay', DECAY) specifies the decay to use when 'StopbandShape' is not set to 'flat'. When the shape is '1/f' this specifies the power that 1/f is raised. When shaped is 'linear' this specifies the slope of the stopband in dB/rad/s. % Example #1 - Design a halfband lowpass equiripple filter with increased stopband attenuation. TW = 0.1; % Transition Width Ast = 80; % Stopband Attenuation (dB) h = fdesign.halfband('Type','Lowpass','TW,Ast',TW,Ast); Hd = design(h, 'equiripple', 'StopbandShape','linear','StopbandDecay',50); fvtool(Hd)
designopts (d,“equiripple”
ans =带字段的结构:FilterStructure: 'dffir' MinPhase: 0 StopbandShape: 'flat' StopbandDecay: 0 SystemObject: 0
equiFilt =设计,“equiripple”“stopbandshape”“平”“SystemObject”,真正的);fvtool (equiFilt);

图形过滤可视化工具-幅度响应(dB)包含一个轴对象和其他类型的uitoolbar, uimenu对象。标题为Magnitude Response (dB)的axis对象包含2个类型为line的对象。

fvtool显示滤波器的等纹波特性。

本例通过指定'FilterStructure'参数设计了一个具有直接形式转置结构的等纹波滤波器。要设置筛选器的设计选项,请使用designopts方法和选项对象选择

D = fdesign.lowpass(“fp,置,美联社,ast”);选项=设计(d,“equiripple”);选择。FilterStructure =“dffirt”;选择。DensityFactor = 20
选择=带字段的结构:FilterStructure: 'dffirt' DensityFactor: 20 MinPhase: 0 MaxPhase: 0 MinOrder: 'any' StopbandShape: 'flat' StopbandDecay: 0 UniformGrid: 1 SystemObject: 0
firFilt =设计(d,“equiripple”“SystemObject”、真正的选择)
firFilt = dsp。FIRFilter与属性:结构:'直接形式转置'分子来源:'属性'分子:[-0.0024 -0.0021 0.0068 0.0167 0.0111 -0.0062…显示所有属性
fvtool (firFilt);

图形过滤可视化工具-幅度响应(dB)包含一个轴对象和其他类型的uitoolbar, uimenu对象。标题为Magnitude Response (dB)的axis对象包含2个类型为line的对象。

MaxPhase设备FIR滤波器的设计选项目前仅适用于低通、高通、带通和带阻滤波器。

另请参阅

功能

在R2011a中引入