<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670</link>
    <title>MATLAB Central Newsreader - How to detect pulse signal overlap?</title>
    <description>Feed for thread: How to detect pulse signal overlap?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 21 Oct 2009 00:22:04 -0400</pubDate>
      <title>How to detect pulse signal overlap?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670#688528</link>
      <author>Wes</author>
      <description>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?&lt;br&gt;
&lt;br&gt;
% column 1 is time; column 2 is volt&lt;br&gt;
pulseA(:,1) = [0:10];&lt;br&gt;
pulseA(:,2) = [0 0 5 5 0 0 0 0 0 0 0];&lt;br&gt;
pulseB(:,1) = [0:10];&lt;br&gt;
pulseB(:,2) = [0 5 5 5 5 0 0 5 5 0 0];&lt;br&gt;
plot(pulseA(:,1),pulseA(:,2),'b')&lt;br&gt;
hold on&lt;br&gt;
plot(pulseB(:,1),pulseB(:,2),':r')&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 02:14:52 -0400</pubDate>
      <title>Re: How to detect pulse signal overlap?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670#688541</link>
      <author>ImageAnalyst</author>
      <description>On Oct 20, 8:22&#160;pm, &quot;Wes&quot; &amp;lt;wspar...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I have each huge square pulse signal data from two channels. &#160;In the following oversimplified example, how can I detect which pulse events are overlapped between channel A and channel B?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; % column 1 is time; column 2 is volt&lt;br&gt;
&amp;gt; pulseA(:,1) = [0:10];&lt;br&gt;
&amp;gt; pulseA(:,2) = [0 0 5 5 0 0 0 0 0 0 0];&lt;br&gt;
&amp;gt; pulseB(:,1) = [0:10];&lt;br&gt;
&amp;gt; pulseB(:,2) = [0 5 5 5 5 0 0 5 5 0 0];&lt;br&gt;
&amp;gt; plot(pulseA(:,1),pulseA(:,2),'b')&lt;br&gt;
&amp;gt; hold on&lt;br&gt;
&amp;gt; plot(pulseB(:,1),pulseB(:,2),':r')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;
As long as the first columns refer to the same x coordinates you can&lt;br&gt;
do this:&lt;br&gt;
overlap = (pulseA(:,2) == pulseB(:, 2););</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 11:37:05 -0400</pubDate>
      <title>Re: How to detect pulse signal overlap?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670#688634</link>
      <author>Wes</author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;4455e2d5-5f9f-4d01-8980-1348163c8d0c@a6g2000vbp.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Oct 20, 8:22?pm, &quot;Wes&quot; &amp;lt;wspar...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; 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?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; % column 1 is time; column 2 is volt&lt;br&gt;
&amp;gt; &amp;gt; pulseA(:,1) = [0:10];&lt;br&gt;
&amp;gt; &amp;gt; pulseA(:,2) = [0 0 5 5 0 0 0 0 0 0 0];&lt;br&gt;
&amp;gt; &amp;gt; pulseB(:,1) = [0:10];&lt;br&gt;
&amp;gt; &amp;gt; pulseB(:,2) = [0 5 5 5 5 0 0 5 5 0 0];&lt;br&gt;
&amp;gt; &amp;gt; plot(pulseA(:,1),pulseA(:,2),'b')&lt;br&gt;
&amp;gt; &amp;gt; hold on&lt;br&gt;
&amp;gt; &amp;gt; plot(pulseB(:,1),pulseB(:,2),':r')&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -----------------------------------------------------------------------&lt;br&gt;
&amp;gt; As long as the first columns refer to the same x coordinates you can&lt;br&gt;
&amp;gt; do this:&lt;br&gt;
&amp;gt; overlap = (pulseA(:,2) == pulseB(:, 2););&lt;br&gt;
&lt;br&gt;
Sorry that I oversimplified my example.  What if the first column data between channel A and channel B are not same?  For example, if pulseB(:,1) = [0 0.9 1 2.2 3 7 7.1 7.2 8 9 9.5].  Thanks again!</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 14:08:19 -0400</pubDate>
      <title>Re: How to detect pulse signal overlap?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670#688684</link>
      <author>Lars </author>
      <description>how about something like &lt;br&gt;
&lt;br&gt;
% pseudocode&lt;br&gt;
&lt;br&gt;
find(a) &amp;&amp; find(b)&lt;br&gt;
&lt;br&gt;
% or&lt;br&gt;
&lt;br&gt;
a(a~=0) &amp;&amp; b(b~=0)&lt;br&gt;
&lt;br&gt;
you can see it as a modified form of a phase locked loops phase diskriminator&lt;br&gt;
&lt;br&gt;
Lars</description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 17:35:18 -0400</pubDate>
      <title>Re: How to detect pulse signal overlap?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263670#688756</link>
      <author>ImageAnalyst</author>
      <description>Maybe you should first use interp1() to get a common x axis.&lt;br&gt;
Otherwise, being digital there's no certain way to tell overlap unless&lt;br&gt;
you make assumptions.  For example if A=5 and 1 and 5 at 2, while B =&lt;br&gt;
5 at 0.9 and still 5 at 2.1, can you say that B = 5 at 1 and 2?  No,&lt;br&gt;
you can't because you don't have B measured at those locations.  You&lt;br&gt;
can make some guess at what B would be there (for example using&lt;br&gt;
interp1) and then you can make the comparison.  Also, what does&lt;br&gt;
overlap mean?  Do they need to have the same Y value?  What if, at a&lt;br&gt;
particular X, A equaled 5 and B equaled 4.  Is that an overlap&lt;br&gt;
condition?</description>
    </item>
  </channel>
</rss>

