imat_ctrace/ne


Purpose

Check whether two traces are different.

Syntax

t1~=t2
ne(t1,t2)

Description

This function returns a logical false (0) if the two coordinate traces are equal, and true (1) otherwise. Two coordinate traces are equal if all coordinates and directions (including signs) are identical. The order of coordinates in the coordinate traces is significant.

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+'

>> if t1(1)~=t2(4), disp('Unequal') else disp('Equal'); end
Equal

>>

See Also

imat_ctrace/eq