Problem using NARX NN time series tool

1 view (last 30 days)
Hi I have an input matrix of order nx2 my target matrix is nx1 i have taken delay d as 2; after training the NN and saving it we get a MATLAB object(net).
Now i am using the following command to predict the next value: Ypred = sim(net,xdata')';
it is showing following error ??? Error using ==> network.sim at 121 Number of inputs does not match net.numInputs.
can any one please tell me what input should i give to get the solution

Accepted Answer

Greg Heath
Greg Heath on 6 Jul 2014
[ I N ] = size(Input)
[ O N ] = size(Output)
P.S. posting the code in question generally gets faster answers than trying to explain in words. Ideally, use both
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!