RosettaCodeData/Task/Symmetric-difference/MATLAB/symmetric-difference-1.m

6 lines
76 B
Mathematica
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
>> [setdiff([1 2 3],[2 3 4]) setdiff([2 3 4],[1 2 3])]
ans =
1 4