signum function
X=sign(A)
:А real or complex matrix : :X real or complex matrix :
X=sign(A) returns the matrix made of the signs of A(i,j). For complex A, sign(A) = A./abs(A).
sign(`rand`_(2,3)) sign(1+%i)
Enter search terms or a module, class or function name.