imat_ctrace/plus


Purpose

Return union of two traces (t1+t2).

Syntax

t1 + t2
plus(t1,t2)

Description

When operating on two coordinate traces, the PLUS function returns the union (i.e., all unique coordinates in sorted order).

Examples

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

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

>> t2=imat_ctrace('4x', '3z', '2z-', '5y', '8x+')

t2 =
    '4X+'
    '3Z+'
    '2Z-'
    '5Y+'
    '8X+'

>> t=t1+t2

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

>>

See Also

imat_ctrace/minus