为什么会出现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/06/30 20:00:44
![为什么会出现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](/uploads/image/z/10643888-56-8.jpg?t=%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BC%9A%E5%87%BA%E7%8E%B0Index+exceeds+matrix+dimensionss%3D%5B0+-4.5667+26.0846+30.4615+-22.1462+-0.4000+7.5615+-12.4308+-25.9923+-8.6385+-33.5385+55.6077%5D%3By%3Diddata%28%5Bs%2C0%2C0%5D%27%29%3Bar7%3Dar%28y%281%3A12%29%2C7%29p%3Dpredict%28y%281%3A14%29%2Car7%2C2%29p1%3Dp.outputdata%3Bfigureplot%28p%2C%27g%27%29hold+onplot)
为什么会出现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
就矩阵自身计算一下,看看矩阵设置上是不是有问题