imat_ctrace/sign


Purpose

Sign (+/- 1) of coordinate trace.

Syntax

u=sign(t)

Description

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.

Examples

>> t=imat_ctrace('5y', '6rx', '3z', '4x-')

t =
    '5Y+'
    '6RX+'
    '3Z+'
    '4X-'

>> sign(t)

ans =
     1
     1
     1
    -1

>>

See Also

imat_ctrace/abs, imat_ctrace/uminus