绘制动态网络时间序列响应
plotresponse (t, y)
plotresponse (t1,“名字”,t2, name2,…,y)
plotresponse(…,outputIndex outputIndex)
plotresponse (t, y)
取目标时间序列t
输出时间序列y
,并在同一坐标轴上标出它们之间的误差。
plotresponse (t1,“名字”,t2, name2,…,y)
采用多个目标/名称对,通常定义培训、验证和测试目标,以及输出。它用表示不同目标集的颜色绘制响应。
plotresponse(…,outputIndex outputIndex)
可选地定义哪个错误元素被关联和绘制。缺省值是1。
这个例子展示了如何使用NARX网络来解决时间序列问题。
[X, T] = simplenarx_dataset;网= narxnet (1:2, 20);[X, Xi, Ai, Ts] = preparets(净,X, {}, T);网=火车(净,x, Ts, Xi, Ai);Y =净(Xs, Xi, Ai);plotresponse (Ts, Y)