sign(1)

NAME
sign - sign function

DESCRIPTION
For non-square matrices, X=sign(A) returns the matrix made of the signs of A(i,j). For square and Hermitian matrices X=sign(A) is matrix sign function.

EXAMPLE
sign(rand(2,3));
A=rand(4,4);B=A+A';X=sign(B);spec(X)

SEE ALSO
function msign in SCIDIR/macros/util