| Neural Network Toolbox | |
| Provide feedback about this page |
Syntax
Description
netprod is a net input function. Net input functions calculate a layer's net input by combining its weighted inputs and biases.
Zi |
S x Q matrices in a row cell array |
FP |
Row cell array of function parameters (optional, ignored) |
and returns an elementwise product of Z1 to Zn.
netprod(code) returns information about this function. The following codes are defined:
Examples
Here netprod combines two sets of weighted input vectors (user-defined).
Here netprod combines the same weighted inputs with a bias vector. Because Z1 and Z2 each contain three concurrent vectors, three concurrent copies of B must be created with concur so that all sizes match.
Network Use
You can create a standard network that uses netprod by calling newpnn or newgrnn.
To change a network so that a layer uses netprod, set net.layers{i}.netInputFcn to 'netprod'.
In either case, call sim to simulate the network with netprod. See newpnn or newgrnn for simulation examples.
See Also
| Provide feedback about this page |
![]() | netinv | netsum | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |