Calculating autocorrelation on time series data
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi,
I am extremely new to matlab. For part of my research work I urgently need to calculate the autocorrelation values for time series data which are in the following form.
time(femtoseconds) distance (Angstrom)
0 15.769
100 16.160
200 15.571
300 15.816
400 15.702
...... ......
...... ......
49990 15.907
I want to calculate the autocorrelation for these distance data points which have been obtained at 100 femtosecond intervals (there are 5000 distance points).
Assuming that I am a beginner to matlab could anyone of you suggest a way to calculate the autocorrelation for these time-series distance data using matlab?
I really appreciate this help.
Thank you
Sajeewa Dewage
답변 (2개)
Wayne King
2013년 5월 17일
0 개 추천
If you have the Signal Processing Toolbox, you can use xcorr() to find the autocorrelation sequence.
If you have the Econometrics Toolbox, there is an autocorr function.
댓글 수: 3
Sajeewa
2013년 5월 17일
Sajeewa
2013년 5월 17일
Wayne King
2013년 5월 18일
Do you want to use autocorr() or xcorr()? Please answer that question first. Please confirm which toolboxes you have installed and which function you prefer to use.
Youssef Khmou
2013년 5월 17일
hi Sajeewa,
try :
c=xcorr(distance,'biased'); % biased estimate
댓글 수: 1
Sajeewa
2013년 5월 18일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!