Return a sorted union of two imat_ctrace with no repetitions.
tf=setxor(ta,tb)
[tf,ia,ib]=setxor(ta,tb)
SETXOR for the imat_ctraces TA and TB returns an imat_ctrace TF containing the coordinates that are not in the intersection of TA that are not in TB. IA and IB are index vectors such that TF is the sorted combination of TA(IA) and TB(IB).
Starting in MATLAB R2013a, the behavior of SETXOR has changed. To preserve the behavior of previous versions of MATLAB, pass in the string 'legacy'.
>> ta=imat_ctrace('1x','2y','3x');
>> tb=imat_ctrace('1x','1y','1z','2x','2y','2z','3x','3y');
>> [t,ia,ib]=setxor(ta,tb)
t =
'1Y+'
'1Z+'
'2X+'
'2Z+'
'3Y+'
ia =
Empty matrix: 0-by-1
ib =
2
3
4
6
8
>>
imat_ctrace/intersect, imat_ctrace/ismember, imat_ctrace/setdiff, imat_ctrace/union, imat_ctrace/unique