MATLAB Answers

Problem of neural network prediction

25 views (last 30 days)
hariharan mahalingam
hariharan mahalingam on 30 Oct 2014
Answered: Saeed Bello on 18 Feb 2020
Error using preparets (line 175) Number of output signals does not match number of network's non-feedback outputs.
Error in main (line 50) [Xs,Xi,Ai,Ts]=preparets(net,x,t);

Answers (2)

Saeed Bello
Saeed Bello on 18 Feb 2020
You will need to convert your data to standard neural network cell array form.
Try this:
inputs = tonndata(inputs,false,false);
target = tonndata(target,false,false);
Hope this help.

Greg Heath
Greg Heath on 31 Oct 2014
Insufficient info.
Which net?
Size of inputs and targets?
Size of ID and FD?
  1 Comment
Kishore Kumar
Kishore Kumar on 7 May 2015
Hi sir, i am having same problem as mentioned by Hariharan. my input data size is 13X150 and target is 1X150. And i'm using NARX net. Can u Please help me.
Thanks in advance.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!