主要内容

帮助

使用过滤器规范帮助设计方法

语法

救命designmethod”)

描述

救命designmethod”)在命令窗口中显示设计算法的帮助designmethod用于过滤器规格对象的当前规格Ddesignmethod必须是一个设计算法返回设计方法对于D,设计对象。

例子

全部折叠

获得设计低通巴特沃斯滤波器的具体帮助。

第一个低通过滤器使用默认规范'Fp,Fst,Ap,Ast'并返回特定于该规范的帮助文本。

d = fdesign.lowpass;designmethods (d,“Systemobject”,真正的)
支持fdesign类的系统对象的设计方法金宝app。低通(Fp,Fst,Ap,Ast):黄油cheby1 cheby2 ellip equiripple ifir kaiserwin多级
帮助(d,“黄油”
设计一个巴特沃斯IIR滤波器。HD=DESIGN(D,“butter”)设计由FDESIGN对象D指定的Butterworth过滤器,并返回DFILT/MFILT对象HD。HD=DESIGN(D,…'SystemObject',true)使用系统对象而不是DFILT/MFILT对象实现过滤器HD。HD=DESIGN(…,'FilterStructure',STRUCTURE)返回具有结构的过滤器。默认情况下,结构为“df2sos”,可以是以下任意结构:“df1sos”“df2sos”“DF1TSO”“DF2TSO”“cascadeallpass”“cascadeallpass”“cascadewdfallpass”系统对象筛选器可能不支持某些列出的结构。键入validstructures(D,'butter','SystemObject',true)以获取系统对象支持的结构列表。HD=设计(…,'MatchExact',MATCH)设计巴特沃斯滤波器,并精确匹配频带匹配的频率和幅度规格。另一个波段将超过规格。匹配可以是“阻带”或“通带”,默认情况下为“阻带”。HD=设计(…,'SOSScaleNorm',NORM)设计SOS滤波器,并使用P-范数缩放系数。范数可以是离散的时域范数或频域范数。有效的时域规范为“l1”、“金宝appl2”和“linf”。有效的频域规范为“L1”、“L2”和“Linf”。请注意,L2范数等于L2范数(Parseval定理),但对于其他范数,情况并非如此。不同的规范可以按照其严格程度排序如下:“l1'>='Linf'>='L2'='L2'>='l1'>='Linf'。使用最严格的缩放“l1”,滤波器最不容易溢出,但信噪比也最差。Linf缩放是实践中最常用的缩放。默认情况下关闭缩放,这相当于设置SosCalenorm=''。HD=设计(…,'SOSScaleOpts',OPTS)设计SOS过滤器,并使用FDOPTS缩放系数。SOSSCALING对象OPTS。缩放选项包括:属性默认说明/有效值-----------------------------------------------------“sosReorder”“自动”缩放前的重新排序部分。{'auto'、'none'、'up'、'down'、'lowpass'、'bandpass'、'bandstop'}'MaxNumerator'2分子系数的最大值'NumeratorConstraint''none'{'none'、'unit'、'normalize'、'po2'}'溢出模式''wrap'{'wrap'、'saturate'}'ScaleValueConstraint''unit'、'none'、'po2'}“MaxScaleValue”“未使用”比例值的最大值当sosReorder设置为“auto”时,将根据设计的响应类型(低通、高通等)自动对各部分重新排序。请注意,“MaxScaleValue”仅在“ScaleValueConstraint”设置为“unit”以外的值时使用。如果“MaxScaleValue”设置为数字,“ScaleValueConstraint”将更改为“none”。此外,如果SOSScaleNorm处于禁用状态(默认情况下),则将忽略所有SOSSCaleOpt。有关P-Norm和缩放选项的更多信息,请参阅DFILT\SCALE的帮助。%示例#1-准确比较通带和阻带匹配。h=F设计低通('Fp、Fst、Ap、Ast'、.1、.3、1、60);Hd=设计(h,‘黄油’、‘匹配准确’、‘通带’);Hd(2)=设计(h,‘黄油’、‘匹配’、‘阻带’);%比较FVTool中的通带边。fvtool(Hd);轴线([09.11-20]);

注意关于完全匹配输入选项。当您使用使用不同规格的设计对象时,例如“N,F3dB”,黄油设计方法的帮助内容会发生变化。

在这种情况下,MatchExactly选项没有出现在帮助中,因为它不是'N,F3dB'规范的可用输入参数。

d=F设计低通(‘N,F3dB’
d=带属性的低通:响应:“低通”规范:“N,F3dB”说明:{2x1单元}规格化频率:1过滤器顺序:10 F3dB:0.5000
designmethods (d,“Systemobject”,真正的)
支持fdesign类的系统对象的设计方法金宝app。低通(N,F3dB):黄油maxflat
帮助(d,“黄油”
设计一个巴特沃斯IIR滤波器。HD = DESIGN(D, 'butter')设计一个由FDESIGN对象D指定的Butterworth过滤器,并返回DFILT/MFILT对象HD。设计(d,…), 'SystemObject', true)使用System对象而不是DFILT/MFILT对象来实现过滤器HD。高清=设计(…, 'FilterStructure', STRUCTURE)返回一个结构为STRUCTURE的过滤器。STRUCTURE默认为'df2sos',可以是以下任何一种:'df1sos' 'df2sos' 'df1tsos' 'df2tsos' 'cascadeallpass' 'cascadewdfallpass'列出的部分结构可能不被System对象过滤器支持。金宝app键入validstructures(D, 'butter', 'SystemObject', true)来获得一个由System对象支持的结构列表。金宝app高清=设计(…,“SOSScaleNorm”,NORM)设计了一个SOS过滤器,并使用P-Norm NORM缩放系数。 NORM can be either a discrete-time-domain norm or a frequency-domain norm. Valid time-domain norms are 'l1','l2', and 'linf'. Valid frequency-domain norms are 'L1','L2', and 'Linf'. Note that L2-norm is equal to l2-norm (Parseval's theorem) but the same is not true for other norms. The different norms can be ordered in terms of how stringent they are as follows: 'l1' >= 'Linf' >= 'L2' = 'l2' >= 'L1' >= 'linf'. Using the most stringent scaling, 'l1', the filter is the least prone to overflow, but also has the worst signal-to-noise ratio. Linf-scaling is the most commonly used scaling in practice. Scaling is turned off by default, which is equivalent to setting SOSScaleNorm = ''. HD = DESIGN(..., 'SOSScaleOpts', OPTS) designs an SOS filter and scales the coefficients using an FDOPTS.SOSSCALING object OPTS. Scaling options are: Property Default Description/Valid values --------- ------- ------------------------ 'sosReorder' 'auto' Reorder section prior to scaling. {'auto','none','up','down','lowpass', 'highpass','bandpass','bandstop'} 'MaxNumerator' 2 Maximum value for numerator coefficients 'NumeratorConstraint' 'none' {'none', 'unit', 'normalize','po2'} 'OverflowMode' 'wrap' {'wrap','saturate'} 'ScaleValueConstraint' 'unit' {'unit','none','po2'} 'MaxScaleValue' 'Not used' Maximum value for scale values When sosReorder is set to 'auto', the sections will be automatically reordered depending on the response type of the design (lowpass, highpass, etc.). Note that 'MaxScaleValue' will only be used when 'ScaleValueConstraint' is set to something other than 'unit'. If 'MaxScaleValue' is set to a number, the 'ScaleValueConstraint' will be changed to 'none'. Further, if SOSScaleNorm is off (as it is by default), then all the SOSScaleOpts will be ignored. For more information about P-Norm and scaling options see help for DFILT\SCALE. % Example #1 - Design a lowpass Butterworth filter in the DF2TSOS structure. h = fdesign.lowpass('N,F3dB'); Hd = design(h, 'butter', 'FilterStructure', 'df2tsos');
介绍了R2011a