Why is Autocorrelation not working correctly??
显示 更早的评论
hi,
please help!
I am trying to run autocorr function. it's located in C:\Program Files\MATLAB\R2014a\toolbox\econ\econ
however, the function returns:
"Undefined function 'autocorr' for input arguments of type 'double'."
please help!
S. O. S.
回答(2 个)
Salman Salman
2015-2-12
0 个投票
Type in
which autocorr
at the command line and when you type
license('test','econometrics_toolbox')
you should see it return a value of 0 or 1. If it returns 0, then you don’t have the toolbox installed, if not then I suggest trying xcorr. By using the same array twice, the cross correlation should be equal to an autocorrelation.
crossCorrelation = xcorr(signal, signal); % This is the 1D case
crossCorrelation = xcorr2(signal, signal); % This is the 2D case
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!