Sign
Sign(x)gives
-1,0or1depending on whetherxis negative, zero or positive. For complex numbersSignis defined asx/Abs(x), if x is nonzero.
See
Examples
>> Sign(-2.5)-1Implementation status
- ✅ - full supported
Sign(x)gives
-1,0or1depending on whetherxis negative, zero or positive. For complex numbersSignis defined asx/Abs(x), if x is nonzero.
See
>> Sign(-2.5)-1