%Original Code
% IS IT CORRECT TO DO AS FOLLOWS???
% multi-step prediction knowing input and initial condition of output. The
% input is taken as the one used for training the network.
% The output T2{1} = T{1}, T2{i>1}=0;
T2=T;
for i=2:length(T)
T2{i}=0;
end
[xc,xic,aic,tc] = preparets(netc,X,{},T2);
yc = netc(xc,xic,aic);
% PLOT FIGURE
%compare actual output vs. multi-step prediction
%knowing input and initial condition of output
figure();
plot(cell2mat(t),'-r','linewidth',2);
hold on;
plot(cell2mat(yc),'-.b','linewidth',1.5);
legend('actual output','multi-step prediction knowing input and initial condition
of output');
xlabel('time step')
ylabel('output');