Get network weight and bias values as single vector
getwb(net) returns a neural network's
weight and bias values as a single vector.
Here a feedforward network is trained to fit some data, then its bias and weight values are formed into a vector.
[x,t] = simplefit_dataset; net = feedforwardnet(20); net = train(net,x,t); wb = getwb(net)