This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Linear transfer function

Graph and Symbol


A = purelin(N,FP)
info = purelin('code')


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

A = purelin(N,FP) takes N and optional function parameters,


S-by-Q matrix of net input (column) vectors


Struct of function parameters (ignored)

and returns A, an S-by-Q matrix equal to N.

info = purelin('code') returns useful information for each supported code string:

purelin('name') returns the name of this function.

purelin('output',FP) returns the [min max] output range.

purelin('active',FP) returns the [min max] active input range.

purelin('fullderiv') returns 1 or 0, depending on whether dA_dN is S-by-S-by-Q or S-by-Q.

purelin('fpnames') returns the names of the function parameters.

purelin('fpdefaults') returns the default function parameters.


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

n = -5:0.1:5;
a = purelin(n);

Assign this transfer function to layer i of a network.

net.layers{i}.transferFcn = 'purelin';

More About

collapse all


a = purelin(n) = n

See Also

| |

Introduced before R2006a

Was this topic helpful?