autocorr - unable to use
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)
Accepted Answer
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
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!