Date: Nov 27, 2012 11:58 PM
Author: Murugan Solaiyappan
Subject: how to train the network for stock data

Dear matlab friends,
Greetings to all.

I have trouble with train the stock data.
here my code is,

net=newff(minmax(pn),[24 1],{'tansig','tansig'},'traingdm');
net=train(net,pn,tn); contains 271 rows and 24 columns.
P is input data and t is output data.

When I execute the above code in matlab, the following error displayed,

??? Error using ==> network.train at 145
Targets are incorrectly sized for network.
Matrix must have 1 rows.

Error in ==> nn_taiwan_12input at 9

I can't understand the error,

Please any one of you help me my dear friends.