Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!m20g2000vbp.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to detect pulse signal overlap?
Date: Wed, 21 Oct 2009 10:35:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <d0d8f9da-9230-48db-b74e-f43dc380d6f5@m20g2000vbp.googlegroups.com>
References: <hblk7b$1r3$1@fred.mathworks.com> <4455e2d5-5f9f-4d01-8980-1348163c8d0c@a6g2000vbp.googlegroups.com> 
	<hbmrp1$lg7$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1256146518 2510 127.0.0.1 (21 Oct 2009 17:35:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 Oct 2009 17:35:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m20g2000vbp.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; 
	.NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:579064


Maybe you should first use interp1() to get a common x axis.
Otherwise, being digital there's no certain way to tell overlap unless
you make assumptions.  For example if A=5 and 1 and 5 at 2, while B =
5 at 0.9 and still 5 at 2.1, can you say that B = 5 at 1 and 2?  No,
you can't because you don't have B measured at those locations.  You
can make some guess at what B would be there (for example using
interp1) and then you can make the comparison.  Also, what does
overlap mean?  Do they need to have the same Y value?  What if, at a
particular X, A equaled 5 and B equaled 4.  Is that an overlap
condition?