MATLAB: I’m going to build up a narx model using two inputs with different input delays for each input. How should i put different input delays in to the network

narx model with multiple inputsnarxnet

inputsarray=[dlngold;day1]; inputs1=con2seq(inputsarray)
target=con2seq(aspilnreturn)
inputSeries = inputs1; targetSeries = target;
inputDelays = 1:1; feedbackDelays = 1:3; hiddenLayerSize = 2; net = narxnet(inputDelays,feedbackDelays,hiddenLayerSize);
[inputs,inputStates,layerStates,targets] = preparets(net,inputSeries,{},targetSeries);

Best Answer

If you have multiple inputs and want different delays for different inputs, you have to define a CUSTOM NETWORK with parallel input layers. The delays within each layer are the same.
For the appropriate documentation, use the commands
help network
doc network
Hope this helps.
Thank you for formally accepting my answer
Greg