help needed with subsindex error

1 回表示 (過去 30 日間)
Fred
Fred 2014 年 3 月 5 日
コメント済み: Fred 2014 年 3 月 5 日
This is the ARIMA part of my code
TS2 = TS(:,2);
n2=16;
[fit,VarCov,LogL,info] = estimate(model,TS2(1:n2,1))
AIC = aicbic(LogL,p+q)
res = infer(fit,TS2(1:n2,1));
TSlds = zeros(n1-n2,1);
for i = 1:(n1-n2)
[TSlds(i,1)] = forecast(fit,1,'Y0',TS2(1:(n2-1+i),1));
end
and I get this error:
Error using subsindex
Function 'subsindex' is not defined for values of class 'arima'.
Error in Copy_of_DO05A090_12months (line 124)
[TSlds(i,1)] = forecast(fit,1,'Y0',TS2(1:(n2-1+i),1));
Thanks

採用された回答

Matt J
Matt J 2014 年 3 月 5 日
編集済み: Matt J 2014 年 3 月 5 日
I suspect you have a matrix variable called "forecast" somewhere in the workspace. Otherwise, set a breakpoint at line 124 and show us the output of WHOS there.
  1 件のコメント
Fred
Fred 2014 年 3 月 5 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatched Filter and Ambiguity Function についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by