关于armax的应用
我要对ARMA模型进行参数估计和预测用armax怎么实现啊?
谢谢
x=
xx=dtrend(x)
m0=
m= armax( xx, m0)
yp1 = predict (xx(1 :60) ,m)
总是有错误提示:
??? Error using ==> armax
Error using ==> pemdecod
Incorrect number of orders specified.
You should have m0 = ,
where nb and nk are row vectors of length equal to
the number of inputs.
For a scalar time series m0 =.
[ 本帖最后由 eight 于 2007-6-25 10:47 编辑 ] Incorrect number of orders specified.
You should have m0 = ,
m0=
根据提示你的模型阶数设置不正确. 那应该怎样设置模型参数呢?谢谢 简单修改一下
m= armax( xx', m0) 按照Happy教授的提示,稍作修改即可.
但结果似乎不好:yp1 =Empty matrix: 0-by-1
由于问题背景没讲清楚,只能你自己修改了.
%%%%%%%%%%%%%%%%%%%%%
x=;
xx=dtrend(x);
m0=;
xx1=xx';
m= armax( xx1, m0)
yp1 = predict (xx1(60:1) ,m)
%%%%%%%%%%%%%%% 这么做确实很难模拟的准确。matlab里面有个地震的振动信号,直接这么模拟也不能得到很好的效果
页:
[1]