g = netderiv(w, net, x)
g = netderiv(w, net, x) takes a weight vector w and a network
data structure net, together with the matrix x of input
vectors, and returns the
gradient of the outputs with respect to the weights evaluated at w.
netevfwd, netoptCopyright (c) Ian T Nabney (1996-9)