为什么会出现Index exceeds matrix dimensionss=[0 -4.5667 26.0846 30.4615 -22.1462 -0.4000 7.5615 -12.4308 -25.9923 -8.6385 -33.5385 55.6077];y=iddata([s,0,0]');ar7=ar(y(1:12),7)p=predict(y(1:14),ar7,2)p1=p.outputdata;figureplot(p,'g')hold onplot

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 01:24:39
为什么会出现Indexexceedsmatrixdimensionss=[0-4.566726.084630.4615-22.1462-0.40007.5615-12.4308-25.9923-8.6

为什么会出现Index exceeds matrix dimensionss=[0 -4.5667 26.0846 30.4615 -22.1462 -0.4000 7.5615 -12.4308 -25.9923 -8.6385 -33.5385 55.6077];y=iddata([s,0,0]');ar7=ar(y(1:12),7)p=predict(y(1:14),ar7,2)p1=p.outputdata;figureplot(p,'g')hold onplot
为什么会出现Index exceeds matrix dimensions
s=[0 -4.5667 26.0846 30.4615 -22.1462 -0.4000 7.5615 -12.4308 -25.9923 -8.6385 -33.5385 55.6077];
y=iddata([s,0,0]');
ar7=ar(y(1:12),7)
p=predict(y(1:14),ar7,2)
p1=p.outputdata;
figure
plot(p,'g')
hold on
plot(s,'r')
已经算出ACF拖尾,PACF 7阶截尾
为什么运行出现错误
哪里错了?

为什么会出现Index exceeds matrix dimensionss=[0 -4.5667 26.0846 30.4615 -22.1462 -0.4000 7.5615 -12.4308 -25.9923 -8.6385 -33.5385 55.6077];y=iddata([s,0,0]');ar7=ar(y(1:12),7)p=predict(y(1:14),ar7,2)p1=p.outputdata;figureplot(p,'g')hold onplot
就矩阵自身计算一下,看看矩阵设置上是不是有问题