%% UgMultistepPrediction
% 
%% open loop

% Copyright 2015 The MathWorks, Inc.

[X,T] = maglev_dataset;
net = narxnet(1:2,1:2,10);
[x,xi,ai,t] = preparets(net,X,{},T);
net = train(net,x,t,xi,ai);
y = net(x,xi,ai);
view(net)

%% closed loop
netc = closeloop(net);
view(netc)
