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)

 Réponse acceptée

the cyclist
the cyclist le 26 Mai 2014

3 votes

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 commentaires

chaos
chaos le 26 Mai 2014
Modifié(e) : chaos le 26 Mai 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 le 27 Mai 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.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 27 Mai 2014

1 vote

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

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by