01 · Signal editorsTime −4 to 4 · amplitude −2 to 2CollapseExpand

The operation you are building

Flip → shift → multiply → integrate

Signal editors

Two pulses produce a triangular convolution.

Click to add points; drag a point to reshape the signal. Values are zero beyond the first and last points.

02 · Shift, multiply, and integrateSecond signal flipped and shifted
−8+8

Move the slider or drag a plot to sweep. The slider thumb follows the shift marker below.

Superimpose the signals

x(τ)h(ℓ − τ)

Multiply point by point

Positive productNegative product
Signed area at this shift0.000 + 0.000 = 0.000

Build the convolution

Each point is the product integral at one shift. Move the sweep to reveal the result from left to right.

Learning guide · convolution and correlation

Convolution flips the second signal

At each shift ℓ, form h(ℓ − τ), multiply it by x(τ), and integrate over τ. A positive ℓ moves the flipped signal to the right. The result y(ℓ) describes how an input combines with an impulse response.

Correlation measures alignment

This simulator uses Rₓₕ(ℓ) = ∫ x(τ) h(τ − ℓ) dτ for real signals. A positive lag moves h to the right. A high value means strong signed alignment; opposite signs produce negative contributions. Other references can use the opposite lag sign.

Autocorrelation compares a signal with itself

Replace h with x. The result is symmetric about zero lag. At zero, Rₓₓ(0) = ∫ x²(τ) dτ, the signal energy, and the magnitude is largest there.

Read the area and the approximation

The result is the signed area under the pointwise product. Green shading contributes positively; maroon shading contributes negatively. Signals are real and zero outside −4 ≤ t ≤ 4. The display approximates continuous-time integration with 0.02 time spacing and linear interpolation between samples. Correlation is unnormalized.

Time and amplitude use arbitrary units. Freehand strokes replace the portion you draw. Clearing a signal gives a blank canvas; Undo restores its previous shape.

Correlation convention · MathWorks documentation