MATLAB: Input format to the neural network

datasetDeep Learning Toolboxinputneural networkstargettrain

Hi everyone,
My question is how's the suitable and available format of neural network training input and target ?
I hope the answer to depend on an example ,for example if my input consists of (10) classes or patterns , and for each pattern there're (5) samples , and a feature vector of length (20) is extracted from each sample . what's the suitable format of the file that contains these training dataset? and what's the format of the input (p) and target (t) to the neural network toolbox in matlab ?
After searching I understand that the feature vector elements for each class is ordered as rows , and the columns express the multiple classes or patterns , am I right ? if no , then correct that to me please , and if yes , I still want to know about the different samples of the same pattern , do I deal with them as separate classes and specify its target separately ? or what ?
please don't answer me like this :
[ I N ] = size(input)
[ O N ] = size(target)
If you don't mind, use my above example numbers instead to understand you perfectly .
Thanks in advance

Best Answer

[ I N ] = size(input)= [ 20 50 ]
[ O N ] = size(target)= [ 10 50 ]
If you use PATTERNNET with it's default batch learning algorithm, the order of the individual inputs is irrelevant as long as they are paired with the correct target class vector.
The order that is easiest for me to demonstrate is
target = repmat(eye(10),1,5);
Hope this helps.
Thank you for formally accepting my answer.
Greg