Neural Network Toolbox Previous page   Next Page
ddotprod

Dot product weight derivative function

Syntax

dZ_dP = ddotprod('p',W,P,Z)

dZ_dW = ddotprod('w',W,P,Z)

Description

ddotprod is a weight derivative function.

ddotprod('p',W,P,Z) takes three arguments,

and returns the S x R derivative dZ/dP.

ddotprod('w',W,P,Z) returns the R x Q derivative dZ/dW.

Examples

Here we define a weight W and input P for an input with three elements and a layer with two neurons.

Here we calculate the weighted input with dotprod, then calculate each derivative with ddotprod.

Algorithm

The derivative of a product of two elements with respect to one element is the other element.

See Also

dotprod


Previous page  concur dhardlim Next page

© 1994-2005 The MathWorks, Inc.