sign

sign(X) returns sign of each element in X.

Examples

> sign(2)

	[ans:1]
> sign(-2)

	[ans:-1]

Resources

See also

abs | conj | imag | real