Test a match filter's ability to find a pulse.

See also: Plot2D

%--------------------------------------------------------------------------
%   Copyright (c) 2013 Princeton Satellite Systems, Inc.
%   All rights reserved.
%--------------------------------------------------------------------------

m = zeros(1,100);
m(76:91) = 1;
k = 1:length(m);


n  = rand(1,length(m));

mN = m + n;


fM  = fft(m);
fMN = fft(mN);
fN  = fft(n);


q = ifft(fM.*fMN);
y={'Signal', 'With Noise', 'Match Filter Signal'}
Plot2D(k,[m;mN;q],'Sample',y,'Time Histories')



mT = zeros(1,100);
mT(33:40) = 1;

fMT  = fft(mT);

q = ifft(fMT.*fMN);

Plot2D(k,[m;mN;q],'Sample',y,'Time Histories Different Pulse')


%--------------------------------------
% PSS internal file version information
%--------------------------------------
% $Date$
% $Id: 1ad2ebd27e43e5563b0a224c6583a7c58dcd184d $
y =

  1×3 cell array

    {'Signal'}    {'With Noise'}    {'Match Filter Sig…'}