I am trying to train a multivariable input using NEWNARXSP.
When I execute the following commands:
a={[0.1] [0.2] [0.3] [0.4] [0.5] [0.6] [0.7] [0.8] [0.9] [1.0]};b={[-0.1] [0.2] [-0.3] [0.4] [-0.5] [0.6] [-0.7] [0.8] [-0.9] [1.0]};c={[-0.2] [0.4] [-0.6] [0.8] [-0.2] [0.4] [-0.6] [0.8] [-0.2] [0.4]};d1=[1 2];d2=[1 2];narx_net = newnarxsp({[0.1 1.0],[-0.9 1.0],[-0.6 0.8]},d1,d2,[5 1],{'tansig','purelin'}); p=[a;b;c] ;t=c;narx_net.trainFcn = 'trainbr';narx_net.trainParam.show = 10;narx_net.trainParam.epochs = 600;narx_net = train(narx_net,p,t);
I receive the following error in TRAIN:
??? Error using ==> network.train Inputs are incorrect size for network. Cell array must have 2 rows.
Best Answer