Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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