sgnim
Returns the sign of the imaginary part of a complex number. For real numbers x, the result is sgnim(x) = - sgn(x). Depending on input, function can return scalar, vector, matrix or complex number.
Arguments
- Real or complex value x
Output
Real or complex value
Examples