hardlim
Hard-limit transfer function
Description
takes an
A = hardlim(N)S-by-Q matrix of net input (column) vectors,
N, and returns A, the
S-by-Q Boolean matrix with elements equal to
1 where the corresponding elements in N are greater
than or equal to 0.
hardlim is a neural transfer function. Transfer functions calculate a
layer’s output from its net input.

info = hardlim('code') returns useful information for each
code character vector:
hardlim('name')returns the name of this function.hardlim('output')returns the[min max]output range.hardlim('active')returns the[min max]active input range.hardlim('fullderiv')returns 1 or 0, depending on whetherdA_dNisS-by-S-by-QorS-by-Q.hardlim('fpnames')returns the names of the function parameters.hardlim('fpdefaults')returns the default function parameters.
Examples
Input Arguments
Output Arguments
Algorithms
hardlim(n) = 1 if n ≥ 0
0 otherwise
Version History
Introduced before R2006a