Return a sorted union of two imat_ctrace with no repetitions.
tf=union(ta,tb)
[tf,ia,ib]=union(ta,tb)
UNION for the imat_ctrace TA and TB returns an imat_ctrace TF containing the sorted combination of TA and TB with no repetitions. IA and IB are optional vector outputs such that TF is a sorted combination of TA(IA) and TB(IB).
Starting in MATLAB R2013a, the behavior of UNION 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');
>> [tf,ia,ib]=union(ta,tb)
tf =
'1X+'
'1Y+'
'1Z+'
'2X+'
'2Y+'
'2Z+'
'3X+'
'3Y+'
ia =
Empty matrix: 0-by-1
ib =
1
2
3
4
5
6
7
8
>>
imat_ctrace/intersect, imat_ctrace/ismember, imat_ctrace/setdiff, imat_ctrace/setxor, imat_ctrace/unique