size(XTrain) 
= 11          17           3      100303
size(YTrain)
ans =
      100303           1
net = trainNetwork(XTrain,YTrain,layers,options);
Gives error :  
Error using trainNetwork (line 165)
Number of observations in X and Y disagree.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!