Problem using NARX NN time series tool
2 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
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
0 Comments
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!