Problem using NARX NN time series tool

2 次查看(过去 30 天)
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

采纳的回答

Greg Heath
Greg Heath 2014-7-6
[ 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 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by