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

조회 수: 15 (최근 30일)
Markus Gschwind
Markus Gschwind 2023년 4월 12일
댓글: Markus Gschwind 2023년 4월 15일
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

답변 (1개)

Walter Roberson
Walter Roberson 2023년 4월 12일
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
Walter Roberson
Walter Roberson 2023년 4월 12일
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
Markus Gschwind
Markus Gschwind 2023년 4월 15일
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!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by