autocorr.m [Sample Autocorrelation] - from which MATLAB version on?

I have several scripts which I took from another computer with another MATLAB installation (I don't remember which release).
They contain the autocorr function. However on my current release 2015b this function is not known. I was wondering from whcih version on autocorr was available. Thank you

Antworten (1)

Walter Roberson
Walter Roberson am 12 Apr. 2023

0 Stimmen

autocorr -- with that exact name -- dates back to R2006b or perhaps earlier. However, it is part of the Econometrics Toolbox.
You can calculate the autocorrelation sequence of a vector with itself using xcorr with a single input.

3 Kommentare

Markus Gschwind
Markus Gschwind am 12 Apr. 2023
Bearbeitet: Markus Gschwind am 12 Apr. 2023
Thanks. Is there a doc available of "autocorr"? So that I can replace the "autocorr(Timesiries, 62 samples) " with "xcorr(ANDE HERE WHAT EXACTLY?) Or do I need to write my own autocorr function using xcorr? Thank you!
Unfortunately I do not know if "autocorrelation sequence" (xcorr) and "autocorrelation function" (autocorr) are the same thing or not. If they are not, then see https://www.mathworks.com/support/search.html?q=autocorrelation%20function&fq%5B%5D=asset_type_name:fileexchange&page=1&s_tid=CRUX_topnav
I found the explanation of the difference between autocorr, xcorr and xcov here:
I use now [acf,lags] = xcov(Timeseies,62 samples),
but then the lags and acf hve to be cut down to the half: mylags = lags(63:end), myacf = acf(63:end)
As such it is perfectly the same as autocorr.
Thanks again!

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2015b

Tags

Gefragt:

am 12 Apr. 2023

Kommentiert:

am 15 Apr. 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by