autocorr - unable to use

40 views (last 30 days)
chaos
chaos on 26 May 2014
Commented: the cyclist on 27 May 2014
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

the cyclist
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
chaos
chaos on 26 May 2014
Edited: chaos on 26 May 2014
Thank you. It says 'autocorr' not found. There is no mention of 'Econometrics' toolbox after typing 'ver'.
However on typing " license('test','econometrics_toolbox') " (which I found from on internet), the result is 1.
How else can I use autocorrelation function ?
the cyclist
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.

Sign in to comment.

More Answers (1)

Image Analyst
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!