主要内容

equiripple

Equiripple single-rate FIR filter from specification object

语法

equiFilt =设计(d,‘equiripple’,‘SystemObject’,真的)
equiFilt =设计(d ' equiripple designoption,价值,……,“SystemObject”,真的)

描述

equiFilt =设计(d,‘equiripple’,‘SystemObject’,真的)设计了一个等纹波FIR数字滤波器d.等纹波滤波器的设计使通带和阻带的最大纹波最小。

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

equiFilt =设计(d ' equiripple designoption,价值,……,“SystemObject”,真的)返回一个equiripple FIR滤波器,其中指定设计选项作为输入参数。

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

designopts (d,“方法”)

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

帮助(d,“equiripple”)

例子

全部折叠

以半带滤波器为设计对象,设计一种单速率等纹波滤波器。注意help命令用于了解规范对象和方法的选项。
d = fdesign.halfband (“tw, ast”, 0.1, 80);designmethods (d,“Systemobject”,真正的)
支持fdesign类的系统对象的设计方法金宝app。半波段(TW,Ast):黄油椭圆iirlinphase equiripple kaiserwin
帮助(d,“equiripple”
设计一个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 =设计(d,“equiripple”“stopbandshape”“平”“SystemObject”,真正的);fvtool (equiFilt);

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

fvtool显示过滤器的等波纹性质。

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

d = fdesign.lowpass (“fp,置,美联社,ast”);选择= designopts (d,“equiripple”);选择。FilterStructure =“dffirt”;选择。DensityFactor = 20
选择=结构体字段:FilterStructure: 'dffirt' DensityFactor: 20 MinPhase: 0 MaxPhase: 0 MinOrder: 'any' StopbandShape: 'flat' StopbandDecay: 0 UniformGrid: 1 SystemObject: 0 . 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 with properties: Structure: 'Direct form transposed' NumeratorSource: 'Property' Numerator:[-0.0024 -0.0021 0.0068 0.0167 0.0111 -0.0062…InitialConditions: 0显示所有属性
fvtool (firFilt);

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

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

另请参阅

功能

介绍了R2011a