autocorr - unable to use
40 views (last 30 days)
Show older comments
When I used autocorr function in matlab, i got an error "Undefined function 'autocorr' for input arguments of type 'double'"
The error is repeated even for the same sample example from matlab website.
Can anyone tell me why ? (I have econometrics installed. I am using Matlab 2013b version)
0 Comments
Accepted Answer
the cyclist
on 26 May 2014
What do you get if you type
which autocorr
at the command line?
If you type
ver
at the command line, does it indicate that the Econometrics Toolbox is installed?
2 Comments
the cyclist
on 27 May 2014
The following line appears in the documentation for the license command:
"Note: Testing for a license only confirms that the license exists. It does not confirm that the license can be checked out. For example, license will return 1 if a license exists, even if the license has expired or if a system administrator has excluded you from using the product in an options file. The existence of a license does not indicate that the product is installed."
I think you don't actually have the Econometrics Toolbox installed.
More Answers (1)
Image Analyst
on 27 May 2014
I don't see any such function in my MATLAB either. Try xcorr. If you use the same array twice, the cross correlation is an autocorrelation
crossCorrelation = xcorr(signal, signal); % 1D case
crossCorrelation = xcorr2(signal, signal); % 2D case
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!