MATLAB: Neural Network – net.divideFcn = ‘divideind’

neural network

Hi,
I am trying to use "net.divideFcn = 'divideind'". In my case, I want to merge two different range of indices, e.g.,
net.divideParam.trainInd = 1:4, 10:20; (is it possible?) net.divideParam.valInd = 5:9; net.divideParam.testInd = 21:25;
Thank you!

Best Answer

Yes.
However, use [ 1:4, 10:20]
Thank you for formally accepting my answer
Greg