Check whether two coordinate traces are identical.
t1==t2
eq(t1,t2)
This function returns a logical true (1) if the two coordinate traces are equal, and false (0) 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.
>> 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('Equal'); end
Equal
>>