Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How to detect pulse signal overlap?
Date: Wed, 21 Oct 2009 00:22:04 +0000 (UTC)
Organization: Borg Warner Automotive
Lines: 12
Message-ID: <hblk7b$1r3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256084524 1891 172.30.248.35 (21 Oct 2009 00:22:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 00:22:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2828
Xref: news.mathworks.com comp.soft-sys.matlab:578834


I have each huge square pulse signal data from two channels.  In the following oversimplified example, how can I detect which pulse events are overlapped between channel A and channel B?

% column 1 is time; column 2 is volt
pulseA(:,1) = [0:10];
pulseA(:,2) = [0 0 5 5 0 0 0 0 0 0 0];
pulseB(:,1) = [0:10];
pulseB(:,2) = [0 5 5 5 5 0 0 5 5 0 0];
plot(pulseA(:,1),pulseA(:,2),'b')
hold on
plot(pulseB(:,1),pulseB(:,2),':r')

Thanks