主要内容

可变带宽IIR过滤器

Design tunable bandwidth IIR filter

图书馆

Filtering / Filter Designs

dspfdesign

  • 可变带宽IIR过滤器block

描述

The Variable Bandwidth IIR Filter block filters each channel of the input signal over time using specified IIR filter specifications. This block offers tunable filter design parameters, which enable you to tune the filter characteristics while the simulation is running.

The block designs the IIR filter according to the filter parameters set in the block dialog box. The output port properties, such as datatype, complexity, and dimension, are identical to the input port properties.

Each column of the input signal is treated as a separate channel. If the input is a two-dimensional signal, the first dimension represents the channel length (or frame size) and the second dimension represents the number of channels. If the input is a one-dimensional signal, then it is interpreted as a single channel.

This block supports variable-size input, enabling you to change the channel length during simulation. To enable variable-size input, clear theInherit sample rate from input复选框。通道的数量必须保持缺点tant.

算法

This block brings the capabilities ofdsp.VariableBandwidthIIRFilterSystem object™ to the Simulink®环境。

IIR过滤器是使用椭圆形方法设计的。使用基于Allpass过滤器的IIR光谱转换对IIR过滤器进行调整。有关可变带宽IIR滤波器块使用的算法的更多信息,请参见算法部分dsp.VariableBandwidthIIRFilter

Parameters

Filter type

Type of IIR filter. You can set this parameter to:

  • 低通(默认)

  • 高通

  • 带通

  • 带挡板

此参数不可降低。

IIR过滤订单

Order of the IIR filter, specified as a positive integer scalar. The default is8。此参数不可降低。

从输入端口指定通行频率

When you select this check box, the filter passband frequency is input through theFp港口。When you clear this check box, the passband frequency is specified on the block dialog through the滤波器带频率(Hz)范围。

设置时适用此参数Filter typeto低通或者高通

滤波器带频率(Hz)

Passband frequency of the IIR filter, specified as a real positive scalar that is less than half the sample rate of the input signal. This parameter applies when you setFilter typeto低通或者高通, and clear the从输入端口指定通行频率范围。默认值为1000。This parameter is tunable.

Specify center frequency from input port

选择此复选框时,IIR过滤器的中心频率将通过Fc港口。When you clear this check box, the center frequency is specified on the block dialog through theFilter center frequency (Hz)范围。

设置时适用此参数Filter typeto带通或者带挡板

Filter center frequency (Hz)

IIR滤波器的中心频率,指定为实际正标量,小于输入信号的采样率的一半。设置时适用此参数Filter typeto带通或者带挡板, and clear theSpecify center frequency from input port范围。默认值为10000。This parameter is tunable.

从输入端口指定带宽

选择此复选框时,IIR过滤器的带宽将通过BW港口。当您清除此复选框时,通过块对话框指定了过滤器带宽滤波带宽(Hz)范围。

设置时适用此参数Filter typeto带通或者带挡板

滤波带宽(Hz)

IIR滤波器的带宽,指定为实际正标量,小于输入信号的采样率的一半。设置时适用此参数Filter typeto带通或者带挡板, and clear the从输入端口指定带宽范围。默认值为2000。This parameter is tunable.

Filter passband ripple (dB)

IIR滤波器的Pass带纹波,指定为真实的正标量。默认值为1。此参数不可降低。

Filter Stopband attenuation (dB)

IIR滤波器的停止带衰减,指定为真正的正标量。默认值为60。此参数不可降低。

Inherit sample rate from input

When you select this check box, the block’s sample rate is computed asN/Ts, 在哪里N是输入信号的框架大小和Ts是输入信号的样本时间。当您清除此复选框时,块的采样率是指定的值输入样本率(Hz)。By default, this check box is selected.

输入样本率(Hz)

Sample rate of the input signal, specified as a positive scalar. The default is44100。This parameter applies when you clear theInherit sample rate from input复选框。此参数不可降低。

View Filter Response

Opens the dynamic filter visualizer and displays the magnitude response of the variable bandwidth IIR filter. The response is based on the parameters you select in the Block Parameters dialog box. To update the magnitude response while the dynamic filter visualizer is running, modify the parameters in the dialog box and clickApply

您可以从可视化器的接口配置绘图设置和信号测量值。

On the阴谋标签,Configurationsection allows you to modify the plot settings.

On theMeasurements选项卡,您可以测量信号统计信息,放置数据光标,并显示所选信号的峰值。

有关动态滤波器可视化器界面及其工具的更多详细信息,请参见dsp.DynamicFilterVisualizer

模拟使用

Type of simulation to run. You can set this parameter to:

  • 代码生成(默认)

    Simulate model using generated C code. The first time you run a simulation, Simulink generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but provides faster simulation speed than解释执行

  • 解释执行

    Simulate model using the MATLAB®interpreter. This option shortens startup time but has slower simulation speed than代码生成

万博1manbetx支持的数据类型

Port 万博1manbetx支持的数据类型

输入

  • 双精度浮点

  • 单精度浮点

Output

  • 双精度浮点

  • 单精度浮点

参考

[1] A. G. Constantinides. "Spectral Transformations for Digital Filters." Proceedings of the Institution of Electrical Engineers 117, no. 8 (1970):1585-1590.

See Also

双quad滤波器 DSP系统工具箱
Variable Bandwidth FIR Filter DSP系统工具箱
dsp.VariableBandwidthFIRFilter DSP系统工具箱
dsp.VariableBandwidthIIRFilter DSP系统工具箱

Extended Capabilities

C/C ++代码生成
Generate C and C++ code using Simulink® Coder™.

在R2015a中引入