Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: autocorrelation of sine function
Date: Thu, 13 Mar 2008 13:54:02 +0000 (UTC)
Organization: King's College London
Lines: 6
Message-ID: <frbblq$hff$1@fred.mathworks.com>
References: <frb892$pf5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205416442 17903 172.30.248.38 (13 Mar 2008 13:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Mar 2008 13:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477
Xref: news.mathworks.com comp.soft-sys.matlab:457035



try [c,lags]=xcorr(signal,'unbiased');

Coeff estimates are biased - for lags greater than zero the 
number of valid data point pairs falls off to 1 at abs(lag)
==data length.