coeffs
以结构体形式返回滤波器 System object 系数
说明
示例
FIRHalfbandInterp = dsp.FIRHalfbandInterpolator(Specification="Filter order and transition width",... FilterOrder=26); C = coeffs(FIRHalfbandInterp); C.Numerator
ans = 1×27
0.0525 0 -0.0379 0 0.0537 0 -0.0771 0 0.1172 0 -0.2060 0 0.6345 1.0000 0.6345 0 -0.2060 0 0.1172 0 -0.0771 0 0.0537 0 -0.0379 0 0.0525
% Impulse response of the filter
impz(FIRHalfbandInterp)
输入参数
滤波器分析中使用的算术,指定为 'double'、'single' 或 'Fixed'。当未指定算术输入且滤波器 System object 未锁定时,分析工具假定为双精度滤波器。当未指定算术输入且 System object 锁定时,该函数基于锁定输入的数据类型执行分析。
'Fixed' 值仅适用于具有定点属性的滤波器 System object。
当 'Arithmetic' 输入参量指定为 'Fixed' 且滤波器对象的系数数据类型设置为 'Same word length as input' 时,算术分析取决于 System object 是未锁定还是锁定。
未锁定 - 分析对象函数无法确定系数数据类型。该函数假定系数数据类型为有符号,具有 16 位字长,并且是自动定标的。该函数基于此假设执行定点分析。
锁定 - 当输入数据类型为
'double'或'single'时,分析对象函数无法确定系数数据类型。该函数假定系数的数据类型为有符号,具有 16 位字长,并且是自动定标的。该函数基于此假设执行定点分析。
要检查 System object 是锁定还是未锁定,请使用 isLocked 函数。
当算术输入指定为 'Fixed' 且滤波器对象的系数数据类型设置为自定义数值类型时,对象函数基于自定义数值数据类型执行定点分析。
输出参量
包含滤波器系数的结构体。
版本历史记录
在 R2011a 中推出从 R2024b 开始,coeffs 分析函数支持 dsp.VariableFIRDecimator 和 dsp.VariableFIRInterpolator 对象。
dsp.BiquadFilter 对象在使用时会发出警告,并将在以后的版本中删除。请改用 dsp.SOSFilter 对象。有关如何替换现有代码的信息,请参阅 dsp.BiquadFilter 参考页中的兼容性注意事项部分。
从 R2024b 开始,此函数支持 dsp.DCBlocker 对象。
从 R2023b 开始,coeffs 分析函数支持 dsp.ParallelFilter 和 dsp.Delay 对象。
dsp.BiquadFilter 对象将在以后的版本中删除。请改用 dsp.SOSFilter 对象。
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)