sign

sign — sign function

Description

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

Examples



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

See also

abs