sign - Signum function

Syntax

Y = sign(X)

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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS