MATLAB: Weights after training

MATLABmatrixneural network

I am trying to train a neural network with Input values and targets. However after training the network I want to be able to view the weights (values) after the training so I will be able to compare them from the initial weights.
How do I do this? I have been using the method net but it does not give me the actual values after training.

Best Answer

Access net.IW (input weights) and net.LW (layer weights). For more information, see here