The problem of autocorrelation function
이전 댓글 표시
According to a differential equation in matlab, the time series x(t) is obtained. To obtain the autocorrelation result of the following figure, xs(t)=x(t-s), s is also a variable, how to write a program in matlab.

답변 (1개)
Image Analyst
2021년 9월 5일
Isn't it just
autoCorrelation = xcorr(x, x);
but that seems so obvious so I'm wondering if this is your homework problem and you have to not use the MATLAB function and write your own version of it. If so, read the following link:
If it's not homework, xcorr() should work for you.
댓글 수: 5
wenxin liu
2021년 9월 5일
편집: wenxin liu
2021년 9월 5일
wenxin liu
2021년 9월 5일
Image Analyst
2021년 9월 5일
What differential equation? Your first sentence of your original post about differential equation has nothing to do with the rest of the post about correlation. You don't even show any differential equation, just an equation for correlation.
And how did you define your (badly-named) "a" and "b"?
What is the time difference between two samples?
wenxin liu
2021년 9월 6일
wenxin liu
2021년 9월 6일
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

