imat_ctrace/or


Purpose

Return union of two traces (t1|t2).

Syntax

t1 | t2
or(t1,t2)

Description

When operating on two coordinate traces, the OR function returns the union (i.e., all unique coordinates in sorted order). The resultant coordinate trace will retain the name of the first coordinate trace passed in.

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/and