MATLAB Functions Help Desk

sign

Purpose

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         Absolute value and complex magnitude

conj        Complex conjugate

imag        Imaginary part of a complex number

real        Real part of complex number



[ Previous | Help Desk | Next ]