Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
May 4, 2001
Messages
16,774
Location
US
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.
 
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

Back
Top