sign

signum function

Calling Sequence

X=sign(A)

Arguments

:А real or complex matrix : :X real or complex matrix :

Description

X=sign(A) returns the matrix made of the signs of A(i,j). For complex A, sign(A) = A./abs(A).

Examples

sign(`rand`_(2,3))
sign(1+%i)

See Also

  • abs absolute value, magnitude
  • csgn Returns the sign of a vector of real of complex values.
  • signm matrix signum function

Table Of Contents

This Page