Main Content

Varying Notch Filter

Notch filter with varying coefficients

  • Varying Notch Filter block

Libraries:
Control System Toolbox / Linear Parameter Varying

Description

The block implements a continuous-time notch filter with varying coefficients. The instantaneous transfer function of the filter is given by:

N(s)=s2+2*gmin*damp*freq*s+freq2s2+2*damp*freq*s+freq2,

where gmin, damp, and freq are the values supplied at the corresponding input ports. These parameters control the notch depth and frequency as shown in the following illustration. The damping ratio damp controls the notch width Δ; larger damp means larger Δ.

Use this block and the other blocks in the Linear Parameter Varying library to implement common control elements with variable parameters or coefficients. For more information, see Model Gain-Scheduled Control Systems in Simulink.

Caution

Avoid making the filter coefficients depend on the block output y. If you have such dependence, the resulting filter causes an algebraic loop, because computing the block output value requires knowing the block output value. This algebraic loop is prone to instability and divergence.

Ports

Input

expand all

Notch filter input signal

Value of the notch frequency, specified in rad/s.

Value of the gain at notch frequency, in absolute units. This value controls the notch depth. The notch filter has unit gain at low and high frequency. The gain is lowest at the notch frequency, the value at the freq port.

Value of the damping ratio, specified as a positive scalar value. The damping ratio controls the notch width; the closer to 0, the steeper the notch.

Output

expand all

Notch filter output signal.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2017b