The problem of autocorrelation function
4 次查看(过去 30 天)
显示 更早的评论
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.

0 个评论
回答(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.
另请参阅
类别
在 Help Center 和 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!

