Number of ACF lags must be a scalar
7 views (last 30 days)
Show older comments
Hi there,
I have one basic question just it has been bothering me for a day. This is the code:
Table=readtable('rGDP.csv');
gdpacf = autocorr(Table.GDP,'NumLags',10);
run it and I keep getting the error msg:
Error using autocorr (line 99)
Number of ACF lags must be a scalar.
Error in test (line 3)
gdpacf = autocorr(Table.GDP,'NumLags',10);
If instead I run gdpacf = autocorr(Table.GDP), everything's fine. So what's wrong with 'NumLags',10 ?
Thanks a lot.
2 Comments
Accepted Answer
Stephan
on 27 Dec 2018
Hi,
try:
Table=readtable('rGDP.csv');
gdpacf = autocorr(Table.GDP,10);
Best regards
Stephan
4 Comments
More Answers (0)
See Also
Categories
Find more on Data Types 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!