<< | Elementary Functions size >>

Scilab Help >> Elementary Functions > sign

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


Report an issue
<< | Elementary Functions size >>