Sign (+/- 1) of coordinate trace.
u=sign(t)
When applied to an imat_ctrace object, the SIGN function returns the directional sign (+/- 1) of the coordinate trace. The output argument is an nx1 numeric array.
>> t=imat_ctrace('5y', '6rx', '3z', '4x-')
t =
'5Y+'
'6RX+'
'3Z+'
'4X-'
>> sign(t)
ans =
1
1
1
-1
>>