Band-pass filter

control.bandpass

Second-order band-pass filter (w0 / Q) s / (s^2 + (w0 / Q) s + w0^2). It passes the frequency w0 with gain 1 and no phase shift; the band is w0 / Q wide.

Ports

NameDomainDirection
usignalin
ysignalout

Parameters

NameUnitDefaultRangeDescription
w0rad/s100 to ∞Center frequency
Q110.000001 to ∞Quality factor

Variables

NameUnitDescription
x11Low-pass filtered input
x21/sRate of change of x1

Equations

der(x1) = x2
der(x2) = w0 ^ 2 * (u - x1) - w0 / Q * x2
y = x2 / (Q * w0)