MATLAB: Neural network inputs and Outputs with different time delay

narxneural network

It is possible to configure and train a NN with diffrent time delays in the MATLAB neural network tool box such as:
Y(t)=F(x(t),x(t-4),x(t-7),y(t-1),y(t-3)) with F the model.
or
Y(t)=F(x1(t-1),x2(t-2),x4(t-4))
Unfortunately NARX work only with same time delay for all inputs and outputs
Thanks

Best Answer

Incorrect.
The number and values of ID and FD are independent.
Simple example:
close all, clear all, clc, plt=0
[X,T] = simplenarx_dataset;
net = narxnet(1,1:2,10);
view(net)
[Xs,Xi,Ai,Ts] = preparets(net,X,{},T);
whos
rng(0)
[net tr Ys Es Xf Yf] = train(net,Xs,Ts,Xi,Ai);
view(net)
whos
ts = cell2mat(Ts);
MSE00 = var(ts,1) % 0.099154
ys = cell2mat(Ys);
es = cell2mat(Es);
R2 = 1-mse(es)/MSE00 % 1
plt=plt+1,figure(plt)
hold on
plot(ts,'o','LineWidth',2)
plot(ys,'r--','LineWidth',2)
Hope this helps.
Thank you for formally accepting my answer
Greg