Radar Echo Demo: How Convolution and Correlation Emerge

Transmit a pulse, measure the environment response, reconstruct echoes by convolution, and then compare sent and received signals by cross-correlation to estimate alignment and lag.

Radar scene

Move the target farther away and the returned echo arrives later. The sequence length is fixed at 100 so you can clearly see the lag. We treat the environment as a linear system: if we know its response h[n] to a unit impulse, then by superposition we can estimate its response to any transmitted signal.
18

Transmitted signal

Start with a single delayed pulse, then try richer transmitted waveforms. Any discrete transmitted sequence can be written as a train of scaled and shifted unit pulses.
Convolution goal: if we know the response h[n] to a unit impulse and assume linearity, then for u[n] = Σₖ u[k]δ[n-k] we estimate the echo by y[n] ≈ Σₖ u[k]h[n-k]. Correlation goal: measure how strongly the sent and received signals match at each lag, for example rxy[ℓ] = Σₙ x[n]u[n-ℓ].
Current frame
0
Direct echo x[n]
0.000
Convolution y[n]
0.000

1. Virtual radar scene

Radar transmitter/receiver
Current transmitted sample
Current echo sample
Target / reflector

2. Measured echo signature h[n]

First click Measure echo signature h[n]. This sends a unit pulse δ[n] and records the returned echo. The central idea of convolution is then: if the system is linear, this measured unit response is enough to build the response to any input by superposition.

3. Transmitted signal u[n]

Any discrete transmitted signal can be written as a weighted impulse train: u[n] = Σₖ u[k]δ[n-k]. Each transmitted pulse generates its own delayed and scaled copy of the measured echo signature.

4. Received echo: direct simulation vs convolution

Blue is the directly simulated received echo. Purple is the response reconstructed from h[n] by superposition. Convolution answers this question: given the unit impulse response, what would the system return for an arbitrary transmitted signal?

5. Cross-correlation: matching the sent and returned pulses

Cross-correlation measures how strongly the sent signal and the received signal match as one is shifted relative to the other. In dot-product form, for lag , rxy[ℓ] = Σₙ x[n]u[n-ℓ]. When the shifted transmitted pulse lines up with the returned echo, the dot product becomes large. Convolution uses h[n-k]. Correlation uses u[n-ℓ]. The sign flip appears because convolution builds an output from shifted impulse responses, while correlation slides one signal against another to measure alignment.