Neural Network Toolbox Previous page   Next Page
formx

Form bias and weights into single vector

Syntax

Description

This function takes weight matrices and bias vectors for a network and reshapes them into a single vector.

X = formx(net,B,IW,LW) takes these arguments,

and returns,

Examples

Here we create a network with a two-element input, and one layer of three neurons.

We can get view its weight matrices and bias vectors as follows:

We can put these values into a single vector as follows:

See Also

getx, setx


Previous page  errsurf gensim Next page

© 1994-2005 The MathWorks, Inc.