|
|
||
|
This interactive tutorial shows how a matched filter (cross-correlation with a known template) makes a weak signal “pop out” of noise. Used in radar (pulse compression with chirps) and telecom (sync with BPSK sequences), it exploits processing gain: coherent addition of the signal versus incoherent growth of noise. What You SeePanel A plots the received signal r[n]: Re(r) upper, Im(r) lower, with Gaussian noise. At low SNR the signal is invisible. Hover over Panel B to overlay the clean template (orange dashed) at that lag. Panel B plots the matched-filter output |c[k]|—the magnitude of the cross-correlation between r and the clean template. A distinct peak appears at the true delay even when Panel A looks like pure noise. The Ground Truth line (Panel A) and correlation peak (Panel B) align vertically. Panel C is split: left shows the Phasor Walk ∑ r[n]·s*[n−k] with fixed scale; right shows the Constellation of r[n] and s[n] in the complex plane. When the template matches (correct lag), phasors add tip-to-tail in a straight line (coherent). When mismatched, they form a random walk and stay near the origin. MathTemplate s[n], received r[n] = s[n−n0] + noise. Cross-correlation: c[k] = ∑n r[n] s*[n−k]. At k = n0 the sum is large (matched); elsewhere it stays small. Processing gain ∝ √N: signal grows linearly with N, noise grows as √N, so SNR improves by √N. SignalsChirp (Radar): cos(2π(f0n + ½kn2)). Long-duration waveform compresses to a sharp peak. BPSK (Telecom): Oversampled Barker-13 sequence (+1/−1). Simple pulse: Rectangular burst. Use the Lag slider or hover on Panel B to sweep the Phasor Walk and see matched vs mismatched. Panel A: Received signal r[n]
Re(r[n])
Im(r[n])
Panel B: Matched filter output |c[k]|
Panel C: Phasor walk & Constellation
Phasor walk ∑ r[n]·s*[n−k]
Constellation: r[n] & s[n]
Usage
Parameters
Panels
Concepts
|
||