help needed with subsindex error
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Electrical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!