Notch filter
control.notch
Second-order band-stop filter (s^2 + w0^2) / (s^2 + (w0 / Q) s + w0^2). It removes the frequency w0 and passes the rest; a higher Q makes the notch narrower.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
w0 | rad/s | 10 | 0 to ∞ | Notch frequency |
Q | 1 | 1 | 0.000001 to ∞ | Quality factor |
Variables
| Name | Unit | Description |
|---|---|---|
x1 | 1 | Low-pass filtered input |
x2 | 1/s | Rate of change of x1 |
Equations
der(x1) = x2 der(x2) = w0 ^ 2 * (u - x1) - w0 / Q * x2 y = u - x2 / (Q * w0)