Qu

notch

Builtin index · Signal processing

result = notch(f0, q, fs)

Input: f0, q, fs · Output: result

What it is

f0: number (Hz, between 0 and fs/2); q: number (quality factor, above 0); fs: number (Hz).

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = notch(f0, q, fs)
f0 numberf0: number (Hz, between 0 and fs/2).
q numberq: number (quality factor, above 0).
fs numberfs: number (Hz).
Model —kind "filter", field sos, one section
peak(f0, q, fs) —unity gain at f0, zero at DC and Nyquist, same bandwidth
Returns a Model (kind "filter", field sos, one section). A second-order notch: a null at f0, unity gain at DC and Nyquist, -3 dB bandwidth exactly f0/q Hz (MATLAB's iirnotch). The companion resonator is peak(f0, q, fs) (unity gain at f0, zero at DC and Nyquist, same bandwidth); with one argument peak(x) is still max(abs(x)). Errors when f0/q reaches fs/2.

Examples

No documentation example calls this form yet. The Signal processing chapter is where one belongs.

How it works

notch(f0, q, fs) / allpass(f0, q, fs) -- one-biquad designs. (peak(f0, q, fs) is the third; it lives in the "peak" arm, next to the older one-argument peak(x).)

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.