matlab 并未提供专门的表示集合的数据结构,仍然使用矩阵进行表示(unique() 函数去重)。 intersect(A, B):交集union(A, B):并集setdiff(A, B):差集(在A不在B)setxor(A, B):异或( = setdiff(union(A, B), intersect(A, B)))ismember(A, B):是否属于