I encountered a very strange problem while using Matlab 2016a Using a neural network built into the Perceptron NNtool toolbox, I try to predict a nonlinear variable. However, during training, the values obtained are for testing and training and validation of NANs. I tried to change the learning speed and hide the layers, but nothing worked. Do you have any idea, why is this so? Any help is greatly appreciated!