imat_ctrace/id


Purpose

Return Nx5 array of node and direction characters.

Syntax

x=id(t)

Description

The ID utility function converts a coordinate trace t into an nx5 matrix of coordinate identifiers suitable for row sorting and set operations like SETDIFF, etc. The first column of the output matrix is the node number, and columns 2 through 5 are ASCII codes of the direction field.

Examples

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

t =

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

>> id(t)

ans =
     5    89    43    32    32
     6    82    88    43    32
     3    90    43    32    32
     4    88    45    32    32
>>

See Also

imat_ctrace/node, imat_ctrace/dir, imat_ctrace/cellstr, imat_ctrace/char, imat_ctrace/double