<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172600</link>
    <title>MATLAB Central Newsreader - xcorr (cross-correlation)</title>
    <description>Feed for thread: xcorr (cross-correlation)</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>Tue, 15 Jul 2008 16:47:03 -0400</pubDate>
      <title>xcorr (cross-correlation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172600#443202</link>
      <author>RV </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I am using the function xcorr (cross-correlation)as follows:&lt;br&gt;
&lt;br&gt;
c = xcorr(x,y,'coeff')&lt;br&gt;
&lt;br&gt;
by using 'coeff' it normalizes the sequence so the&lt;br&gt;
autocorrelations at zero lag are identically 1.0. &lt;br&gt;
&lt;br&gt;
I would like to calculate the cross-correlation coefficient&lt;br&gt;
between vectors x and y at different lags but without&lt;br&gt;
normalization. &lt;br&gt;
&lt;br&gt;
The other 'options' &lt;br&gt;
&lt;br&gt;
1) 'biased': Biased estimate of the cross-correlation&lt;br&gt;
function&lt;br&gt;
&lt;br&gt;
or&lt;br&gt;
&lt;br&gt;
2) 'unbiased': Unbiased estimate of the cross-correlation&lt;br&gt;
function &lt;br&gt;
&lt;br&gt;
does not generate an output with the cross-correlation&lt;br&gt;
coefficient.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for your help</description>
    </item>
    <item>
      <pubDate>Tue, 15 Jul 2008 18:49:02 -0400</pubDate>
      <title>Re: xcorr (cross-correlation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172600#443222</link>
      <author>Andrew Palmer</author>
      <description>&quot;RV &quot; &amp;lt;cyanokybus@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g5ika7$6sg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am using the function xcorr (cross-correlation)as follows:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; c = xcorr(x,y,'coeff')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; by using 'coeff' it normalizes the sequence so the&lt;br&gt;
&amp;gt; autocorrelations at zero lag are identically 1.0. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to calculate the cross-correlation coefficient&lt;br&gt;
&amp;gt; between vectors x and y at different lags but without&lt;br&gt;
&amp;gt; normalization. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The other 'options' &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) 'biased': Biased estimate of the cross-correlation&lt;br&gt;
&amp;gt; function&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; or&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2) 'unbiased': Unbiased estimate of the cross-correlation&lt;br&gt;
&amp;gt; function &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; does not generate an output with the cross-correlation&lt;br&gt;
&amp;gt; coefficient.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for your help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I believe there is another option: &lt;br&gt;
3) 'none':  use the raw, unscaled cross-correlations</description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 15:59:03 -0400</pubDate>
      <title>Re: xcorr (cross-correlation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172600#444343</link>
      <author>RV </author>
      <description>I guess the question is:&lt;br&gt;
&lt;br&gt;
By using c = xcorr(x,y,'coeff')&lt;br&gt;
&lt;br&gt;
matlab generates standardize cross-correlation coefficients.&lt;br&gt;
How to generate un-standardize cross-correlation&lt;br&gt;
coefficients (range -1 to 1)?&lt;br&gt;
&lt;br&gt;
The other 'options': 'biased', 'unbiased' and 'none' does&lt;br&gt;
not seem to provide cross-correlation coefficients.&lt;br&gt;
&lt;br&gt;
Do I need to do an extra calculation to obtain the&lt;br&gt;
correlation coefficient when I ask for the 'none' option?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;RV &quot; &amp;lt;cyanokybus@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g5ika7$6sg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am using the function xcorr (cross-correlation)as follows:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; c = xcorr(x,y,'coeff')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; by using 'coeff' it normalizes the sequence so the&lt;br&gt;
&amp;gt; autocorrelations at zero lag are identically 1.0. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to calculate the cross-correlation coefficient&lt;br&gt;
&amp;gt; between vectors x and y at different lags but without&lt;br&gt;
&amp;gt; normalization. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The other 'options' &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) 'biased': Biased estimate of the cross-correlation&lt;br&gt;
&amp;gt; function&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; or&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2) 'unbiased': Unbiased estimate of the cross-correlation&lt;br&gt;
&amp;gt; function &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; does not generate an output with the cross-correlation&lt;br&gt;
&amp;gt; coefficient.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for your help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 16:37:02 -0400</pubDate>
      <title>Re: xcorr (cross-correlation)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172600#444351</link>
      <author>Malcolm Lidierth</author>
      <description>From the help&lt;br&gt;
'coeff': Normalizes the sequence so the autocorrelations at &lt;br&gt;
zero lag are identically 1.0.&lt;br&gt;
&lt;br&gt;
But xcorr does not do that for cross-correlations &lt;br&gt;
so 'coeff' seems to be what you are after if I have &lt;br&gt;
understood. See the scaleXcorr function within xcorr.&lt;br&gt;
&lt;br&gt;
It is not unusual to force a correlation of 1.0 at zero lag &lt;br&gt;
in autocorrelations to get rid of rounding errors.</description>
    </item>
  </channel>
</rss>

