12-Mar-2019 11:58:42 set_theory_test: MATLAB version Test set_theory. Demonstrate some set theory operations that can be implemented in MATLAB. A: 2 7 12 17 22 27 32 37 42 47 B: 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 C = U ~ B: 1 2 4 5 7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32 34 35 37 38 40 41 43 44 46 47 49 50 D = A intersect B: 12 27 42 E = A union B: 2 3 6 7 9 12 15 17 18 21 22 24 27 30 32 33 36 37 39 42 45 47 48 F = A xor B: 2 3 6 7 9 15 17 18 21 22 24 30 32 33 36 37 39 45 47 48 G = A ~ B: 2 7 17 22 32 37 47 H = B ~ A: 3 6 9 15 18 21 24 30 33 36 39 45 48 ISMEMBER ( I, A ) reports whether I is a member of A 10 is not a member of A. 11 is not a member of A. 12 is a member of A. 13 is not a member of A. 14 is not a member of A. 15 is not a member of A. 16 is not a member of A. 17 is a member of A. 18 is not a member of A. 19 is not a member of A. 20 is not a member of A. ISMEMBER ( D, A ) reports whether D is a subset of A ( A intersect B ) is a subset of A. W: 1 11 21 31 41 W = W union 6: 1 6 11 21 31 41 W = W union [16, 26, 36, 46]: 1 6 11 16 21 26 31 36 41 46 UNIQUE(A) returns a sorted list of the unique elements in A. X: 1 10 24 3 10 1 17 1 1 10 Y = unique(X): 1 3 10 17 24 set_theory_test: Normal end of execution. 12-Mar-2019 11:58:42