主要内容

Highpass Filter

设计FIR或IIR高通滤波器

  • Library:
  • DSP System Toolbox / Filtering / Filter Designs

  • 高通滤波器块

描述

TheHighpass Filter使用给定的设计规范,块在随着时间的推移过程中独立过滤输入信号的每个通道。您可以控制块是否使用该块实现IIR或FIR高通滤波器Filter typeparameter.

该块支持金宝appARM®皮质®代码生成。在特定条件下,该块还支持SIMD代码生成。金宝app有关详细信息,请参阅Code Generation

端口

输入

expand all

输入signal, specified as a real- or complex-valued column vector or matrix. If the input signal is a matrix, each column of the matrix is treated as an independent channel. The number of rows in the input signal denotes the channel length.

Data Types:single|双倍的|固定点
Complex Number Support:Yes

Output

expand all

Filtered signal, specified as a vector or matrix. The output has the same size and complexity characteristics as the input. If the output has a fixed-point data type, it is always signed.

Data Types:single|双倍的|固定点
Complex Number Support:Yes

Parameters

expand all

主要的

指定该块是否实现FIR高通滤波器或IIR高通滤波器。

When you select this check box, the block designs a filter with minimum order. When you clear this check box, you can specify the过滤订单作为一个积极的整数。

过滤订单of highpass filter, specified as a positive scalar integer.

Dependencies

To enable this parameter, clear the设计最小订单过滤器check box.

Stopband edge frequency of the highpass filter, specified as a real positive scalar in Hz. The value of the stopband edge frequency in Hz must be less than the passband frequency.

Dependencies

要启用此参数,请选择设计最小订单过滤器check box.

Passband edge frequency of the highpass filter, specified as a real positive scalar in Hz. The passband edge frequency must be less than half the value of the输入样本率(Hz)

停止带中的最小衰减,指定为DB中真正的正标量。

Maximum ripple of the filter response in the passband, specified as a real positive scalar in dB.

当您选择此复选框时,该块从输入信号继承了其采样率。清除此复选框时,您可以使用输入样本率(Hz)parameter.

输入sample rate, specified as a scalar in Hz.

Type of simulation to run:

  • 解释执行(默认)

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

  • 代码生成

    使用生成的C代码模拟模型。您第一次运行模拟,Simulink金宝app®为块生成C代码。只要模型不更改,就可以重复使用C代码以进行后续模拟。此选项需要额外的启动时间,但提供了比解释执行

打开过滤器可视化工具(fvtool) and displays the magnitude/phase response of the highpass filter. The response is based on the block dialog box parameters. Changes made to these parameters update FVTool.

To update the magnitude response while FVTool is running, modify the dialog box parameters and clickApply

Data Types

圆形的ing method for the output fixed-point operations.

Fixed-point data type of the coefficients, specified as one of the following:

  • FIXDT(1,16)- 单词长度的签名定点数据类型16,具有二元点缩放。该块以从系数值自动确定分数长度,以使系数占据最大代表范围而不会溢出。

  • fixdt(1,16,0)- 单词长度的签名定点数据类型16和分数长度0。您可以将分数长度更改为任何其他整数值。

  • - 使用评估数据类型对象的表达式指定数据类型,例如数字类型(fixdt([],16,15)). Specify the sign mode of this data type as[]或者真的

  • 刷新数据类型— Refresh to the default data type.

点击Show data type assistantbuttonto display the data type assistant, which helps you set the data type. For more information, see使用数据类型指定数据类型的助理(Simulink)

块特征

Data Types

双倍的|固定点|整数|single

直接进料

多维信号

Variable-Size Signals

yes

Zero-Crossing Detection

算法

这个块带来了dsp.HighpassFilterSystem object™ to the Simulink environment.

For information on the algorithms used by this block, see the算法section ofdsp.HighpassFilter

Extended Capabilities

Fixed-Point Conversion
使用定点Designer™设计和模拟定点系统。

Version History

在R2015B中引入