Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

autocorrelation 1

Status
Not open for further replies.

electricpete

Electrical
May 4, 2001
16,774
Let's say I have a long set of data x[n] for n=0...N

I want an autocorrelation function
R[k] = Sum(x[n]*x[n+k]) / Sum(x[n]^2) where the sum is carried out for k from 0 to M
(M << N)

Can it be done easily in excel (without vba) ?


=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Replies continue below

Recommended for you

Thanks, I appreciate that. It looks like I get one k at a time. I would like to plot the function Rhat(k)


I could string out the values of k in columns but that would make for a clumsy spreadsheet.

Is there a clever way to use matrix formula's to do it in place?

If not I'll break down and use vba... should be pretty easy that way.



=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor