From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Data division problem in neural network
Date: Tue, 23 Apr 2013 14:50:09 +0000 (UTC)
Organization: NIT
Lines: 16
Message-ID: <kl6731$8a8$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1366728609 8520 (23 Apr 2013 14:50:09 GMT)
NNTP-Posting-Date: Tue, 23 Apr 2013 14:50:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3629571
Xref: comp.soft-sys.matlab:794151

           I am using neural network pattern recognition for classification purpose.My problem is I am not getting whether for input and target both I have to write individual command      "trainInd,valInd,testInd] = divideind(Q,trainInd,valInd,testInd)" 
and if yes then how to define parameters(net.divideparm)? I have written the following code.I have read the documentation but I am not able to clear my doubt. Please help.

s = RandStream('mcg16807','Seed', 0);
x=input; % size of x is 10x70
t=target;% size of t is 3x70
net = patternnet(22);
[trainInd,valInd,testInd] = divideind(x,1:20,35:45,54:65);
 net.divideParam.trainInd = trainInd
 net.divideParamvalInd = valInd
 net.divideParam.testInd = testInd
 net= train(net,x,t);