如何创建模型块NARX神经网万博1manbetx络和预测未来多个时间步骤吗

7视图(30天)

接受的答案

MathWorks支万博1manbetx持团队
这是一个类似的解决方案结束循环神经网络模型,预测多个输出步骤,像MATLAB的例子:万博1manbetx
我使用了“setsiminit”的例子为你创建这个示例,这是稍微修改:
%的这一部分例子几乎是相同的
[x, t] = simplenarx_dataset;
xnew = x (81:100);
x = x(接触);
t = t(接触);
网= narxnet (1:2, 1:2, 20);
[x, Xi, Ai, Ts] = preparets(净,x, {}, t);
网=火车(净,x, Ts, Xi, Ai);
[Y, Xf,房颤]=净(Xs, Xi, Ai);
[netc、Xic Aic] = closeloop(净、Xf Af);
%显示预测20个步骤MATLAB
y2 = netc (xnew Xic Aic)
%创建一个模型块万博1manbetx
[sysName,网络]= gensim (netc,“InputMode”,“工作区”,
“OutputMode”,“工作区”,“SolverMode”,“离散”);
setsiminit (sysName网络名,netc Xic, Aic, 1);
x1 = nndata2sim (x, 1, 1);
这将创建一个模型输出20值/ Simulink仿真时间步万博1manbetx的仿真软件。

更多的答案(0)

s manbetx 845


释放

R2018b

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!