imat_ctrace/dir


Purpose

Return direction strings of all coordinates.

Syntax

d=dir(t)

Description

The DIR function takes an imat_ctrace object and returns an nx1 cell array of strings containing only the direction string for each coordinate. Most often these strings will be of the form 'X+', 'RZ-', etc., but in general can be any 4-character uppercase string.

Examples

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

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

>> d=dir(t)

d =
    'Y+'
    'RX+'
    'Z+'
    'X-'

>> whos
Name      Size         Bytes  Class

d         4x1            386  cell array
t         4x1            284  imat_ctrace object
Grand total is 34 elements using 670 bytes

>>

See Also

imat_ctrace/imat_ctrace, imat_ctrace/node, imat_ctrace/id, imat_num2dir, imat_dir2num