主要内容

equiripple

从规范对象等平均单速率FIR滤波器

语法

Equifilt = Design(D,'Equiripple','SystemObject',True)
equiFilt =设计(d ' equiripple designoption,价值,……,“SystemObject”,真的)

描述

Equifilt = Design(D,'Equiripple','SystemObject',True)设计了一个等纹波FIR数字滤波器d。相同的过滤器设计最小化通带和阻带中的最大纹波。

当你使用equiripple使用奈奎斯特筛选器规范对象,您可能会遇到滤波器设计不收敛的设计情况。收敛错误主要发生在大型过滤器订单或小过渡宽度或大型过渡距离中。这些规格,单独或组合,可能导致设计失败。有关更多信息,请参阅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.HALFB万博1manbetxAND(TW,AST):黄油椭圆IIRLINPHASE平等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个类型的类型。

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

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

d = fdesign.lowpass (“fp,置,美联社,ast”);选择= designopts (d,“equiripple”);opts.filterstructure =.“dffirt”;选择。DensityFactor = 20
选择=结构与字段:FilterStructure:'DFFIRT'denySfactor:20 minphase:0 maxphase:0 minoRse:'任何'stopbandshape:'flat'stopbanddecay:0 siplinggrid:1 systemobject:0
firFilt =设计(d,“equiripple”“SystemObject”、真正的选择)
FiRFilt = DSP.Firfilter具有属性:结构:'直接表格转置'NumeratorSource:'物业'分子:[-0.0024 -0.0021 0.0068 0.0167 0.0111 -0.0062 ...]初始化:0显示所有属性
fvtool (firFilt);

图筛选筛选器可视化工具 - 幅度响应(dB)包含轴对象和uItoolbar,Uimenu类型的其他对象。具有标题幅度响应(DB)的轴对象包含2个类型的类型。

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

另请参阅

功能

在R2011A介绍