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

6 lines
76 B
Mathematica
Raw Permalink Normal View History

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