Neural Network Toolbox Previous page   Next Page
poslin

Positive linear transfer function

Graph and Symbol

Syntax

A = poslin(N)

info = poslin(code)

Description

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

poslin(N) takes one input,

and returns the maximum of 0 and each element of N.

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

Examples

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

Network Use

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

Call sim to simulate the network with poslin.

Algorithm

The transfer function poslin returns the output n if n is greater than or equal to zero and 0 if n is less than or equal to zero.

poslin(n) = n, if n >= 0; = 0, if n <= 0.

See Also

sim, purelin, satlin, satlins


Previous page  pnormc postmnmx Next page

© 1994-2005 The MathWorks, Inc.