Neural Network Toolbox Previous page   Next Page
logsig

Log sigmoid transfer function

Graph and Symbol

Syntax

A = logsig(N)

info = logsig(code)

Description

logsig is a transfer function. Transfer functions calculate a layer's output from its net input.

logsig(N) takes one input,

and returns each element of N squashed between 0 and 1.

logsig(code) returns useful information for each code string:

Examples

Here is the code to create a plot of the logsig transfer function.

Network Use

You can create a standard network that uses logsig by calling newff or newcf.

To change a network so a layer uses logsig, set net.layers{i}.transferFcn to 'logsig'.

In either case, call sim to simulate the network with purelin.

See newff or newcf for simulation examples.

Algorithm

logsig(n) = 1 / (1 + exp(-n))

See Also


Previous page  linkdist mae Next page

© 1994-2005 The MathWorks, Inc.