MATLAB Function Reference    
sign

Signum function

Syntax

Description

Y = sign(X) returns an array Y the same size as X, where each element of Y is:

For nonzero complex X, sign(X) = X./abs(X).

See Also

abs, conj, imag, real


  shrinkfaces sin