Matlab code for classification using neural network. Train the neural network using the trainnet function.