| Neural Network Toolbox | Search  Help Desk |
| poslin | Examples See Also |
Positive linear transfer function

A = poslin(N)
info = poslin(code)
poslin is a transfer function. Transfer functions calculate a layer's output from its net input.
poslin(N) takes one input,
N - S x Q matrix of net input (column) vectors.
N.
poslin(code) returns useful information for each code string:
Here is the code to create a plot of the poslin transfer function.
n = -5:0.1:5; a = poslin(n); plot(n,a)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.
poslin(n) = n, if n >= 0; = 0, if n <= 0.
sim, purelin, satlin, satlins