Google

main
dspblog
cyclic_signals
FFT_interpolation
FFT_interpolation_how_does_it_work
FFT_smoothness_cyclic
discrete_time_reconstruction
discrete_time_reconstruction2
Nyquist_on_the_edge
FFT_delay_special_case
Fourier_reconstruction
pulse_and_Nyquist
FFT_complexError
matlabOctave
matlab_upsampling
matlab_downsampling
FFT_delay
FFT_filter_example
FFT_interpolation_example
FFT_bin_frequencies
fit_signal
FFT_peaksearch_audio_example
matlab_binary_readwrite
Octavesvg
C
FFTW_example
looprecord
SNR
SNR3
SNR_example_96kAudio
SNR_FFT_correlation_example
lua
luagpib
luasplit
luadump
mnoofltk
wxLuaDll
wxLua_loadAsDll
wxLua_HelloWorld
wxLua_simpleButton
wxLua_resourceManagement
wxLua_XMLparser
DSP
IQ_LO
IQ_LO_2
optimum_receiver
DSP_basics
sampleRateChange_terms
dirac_pulse
freqresp_s
zfilter_example
freqresp_z
freqresp_z_sign
misc
zero_forcing_equalizer_example
nonminphase_inverse
periodic_spectrum
lagrange_multipliers
Entropy
RC_chopper
TRex450_setup
EP100
EP100SE
EP100Gremlins
essential_spares
tail_rotor
motoradjustment
blade_balancing
blade_repair
GAUI_SAE12A
Walkera43


valid html (click to verify)



prevupnextdisable ads

Optimum receiver (matched filter / correlation)

A response to this thread on comp.dsp.

Problem

Detect a pulse, for example five cycles of a sine wave

Solution

Convolve the received signal with the reversed pulse shape (FIR filter).
This implements a matched filter or correlation receiver, which is the optimum linear receiver.

Matlab script

close all; clear all;

len=50;
% Create a pulse, five cycles, 10 samples per cycle 
pulse=cos((0:(len-1))/len*2*pi*5);

% a piece of empty sample
pad=zeros(1, len+3);

% create the received signal from pulses and gaps
s=[pad, 1*pulse, pad, 1*pulse, pad, pad, 0.5*pulse, pad];

% The height of the resulting peaks is the sum of all samples squared
factor=sum (pulse .* conj(pulse));

% FIR filter: Convolve the pulse with the signal
rec=filter(fliplr(pulse), [1], s) / factor;

% Plot
figure(); hold on;
plot(s+1, 'r+-'); plot(rec-1, 'g+-'); legend('receiver input', 'receiver output');
Download
Program output

The red curve shows the input signal to the matched filter, some delayed pulses.
The green curve is the output from the matched filter (or correlator).
The peaks coincide with the point in time, when the received pulse is fully aligned with the filter.


prevupnextdisable ads

© Markus Nentwig 2007-2008
The content of this page is provided without any warranty and may not be reproduced without permission.

Comments? Questions?

Please send me a mail! mnentwig@elisanet.fi